Back to Data Visualization
histogram
Histogram
Syntax
histogram(data) histogram(data, numBins)
Description
Creates a histogram of the data, auto-binned into the specified number of bins (default 10).
Parameters
| Name | Description |
|---|---|
| data | Input data (NDArray) |
| numBins(optional) | Number of bins (default: 10) |
Returns
null (renders chart inline)
Examples
Try It
>> histogram(randn(100, 1))