Series.fromData
(Series)
Create a new time series from a data array
Syntax
x = Series.fromData(dates, values, comments, userData)
Input arguments
dates
[ Dater ]
Dates corresponding to the rows of the
values
; the size ofdates
andvalues
must be compatible along first dimension.
values
[ numeric | logical | str | cell ]
Data array (column vector, matrix, or a higher-dimensional array) for the new time series.
comments=""
[ string ]
Comment or an array of comments associated with the inidivual columns of the data arrays.
userData=struct()
[ struct ]
Struct with any kind of user data to be associated with the time series obejcStruct with any kind of user data to be associated with the time series object.
Output arguments
x
[ Series ]
New time series object.