ts1 = ctranspose(ts)
returns a new
ts1 = ctranspose(
IsTimeFirst value set to opposite of what it
ts. For example, if
the first data dimension aligned with the time vector,
the last data dimension aligned with the time vector as a result of
timeseries objects does not transpose the data.
Instead, this method changes whether the first or the last dimension
of the data aligns with the time vector. To transpose the data, you
must transpose the
Data property of the
For example, you can use the syntax
Data property value must be a 2-D array.
timeseries object with
10 samples with the property
IsTimeFirst = True. When you transpose this object, the data
size changes from 10-by-1 to 1-by-1-by-10. Note that the first dimension
Data property is shown explicitly.
The following table summarizes the size for Data property of
timeseries object (up to three dimensions)
before and after transposing.
Data Size Before and After Transposing
Size of Original Data
Size of Transposed Data
Suppose that a
10-by-3-by-2 and its time vector has a length of 10. The
ts is set to
means that the first dimension of the data is aligned with the time
such that the last dimension of the data is now aligned with the time
vector. This permutes the data, such that the size of