Financial Time Series | ![]() ![]() |
Syntax
sfts = sortfts(tsobj) sfts = sortfts(tsobj, flag) sfts = sortfts(tsobj, seriesnames, flag) [sfts, sidx] = sortfts(...)
Arguments
Description
sfts = sortfts(tsobj, flag)
sorts the financial time series object tsobj
in increasing order based upon the 'dates'
vector.
sfts = sortfts(tsobj, flag)
sets the order of the sort. flag
= +1
increases date order. flag
= -1
decreases date order.
sfts = sortfts(tsobj, seriesnames, flag)
sorts the financial time series object tsobj
based upon the data series name(s) seriesnames. If the optional flag
is set to -1
, the sort is in decreasing order.
[sfts, sidx] = sortfts(...)
additionally returns the index of the original object tsobj
sorted based on 'dates'
or specified data series name(s).
See Also
sort
and sortrows
in the MATLAB documentation
![]() | smoothts | spctkd | ![]() |