Financial Time Series Toolbox    
hist

Histogram

Syntax

Arguments

tsobj
Financial time series object
numbins
(Optional) Number of histogram bins. Default = 10.

Description

hist(tsobj, numbins) calculates and displays the histogram of the data series contained in the financial time series object tsobj.

ftshist = hist(tsobj, numbins) calculates, but does not display, the histogram of the data series contained in the financial time series object tsobj. The output ftshist is a structure with field names similar to the data series names of tsobj.

[ftshist, binpos] = hist(tsobj, numbins) additionally returns the bin positions binpos. The positions are the centers of each bin. binpos is a column vector.

Example

Create a histogram of Disney open, high, low, and close prices:

See Also

mean, std

hist in the MATLAB documentation


  highlow horzcat