| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
help timeseries/tsprops
help timeseries/tsprops lists the properties of the timeseries object and briefly describes each property.
Time Series Object Properties
Property | Description |
|---|---|
Data | Time-series data, where each data sample corresponds to a specific time. The data can be a scalar, a vector, or a multidimensional array. Either the first or last dimension of the data must be aligned with Time. By default, NaNs are used to represent missing or unspecified data. Set the TreatNaNasMissing property to determine how missing data is treated in calculations. |
DataInfo | Contains fields for storing contextual information about Data:
|
Events | An array of tsdata.event objects that stores event information for this time series. You add events by using the addevent method. Fields of the tsdata.event object include the following:
|
IsTimeFirst | Logical value (true or false) specifies whether the first or last dimension of the Data array is aligned with the time vector. You can set this property when the Data array is square and it is ambiguous which dimension is aligned with time. By default, the first Data dimension that matches the length of the time vector is aligned with the time vector. When you set this property to:
After a time series is created, this property is read only. |
Name | Time-series name entered as a string. This name can differ from the name of the time-series variable in the MATLAB workspace. |
Quality | An integer vector or array containing values -128 to 127 that specifies the quality in terms of codes defined by QualityInfo.Code. When Quality is a vector, it must have the same length as the time vector. In this case, each Quality value applies to a corresponding data sample. When Quality is an array, it must have the same size as the data array. In this case, each Quality value applies to the corresponding value of the data array. |
QualityInfo | Provides a lookup table that converts numerical Quality codes to readable descriptions. QualityInfo fields include the following:
Lengths of Code and Description must match. |
Time | Array of time values. When TimeInfo.StartDate is empty, the numerical Time values are measured relative to 0 in specified units. When TimeInfo.StartDate is defined, the time values are date strings measured relative to the StartDate in specified units. The length of Time must be the same as either the first or the last dimension of Data. |
TimeInfo | Uses the following fields for storing contextual information about Time:
|
TreatNaNasMissing | Logical value that specifies how to treat NaN values in Data:
|
datestr, get (timeseries), set (timeseries), setabstime (timeseries)
![]() | tsearchn | tstool | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |