User`s guide
R2010b
12-10
Data Analysis
Arrays of Time Series Objects Supported
MATLAB now enables you to create arrays of timeseries objects. In Version 7.10
(R2010a) and before, timeseries objects behaved as arrays, but some array behavior
was overridden.
Compatibility Considerations
Note: It is likely that this change is important to you only if you write code that uses
timeseries objects.
In Version 7.11 (R2010b), all of the overridden behaviors for the functions listed in
the table that follows are removed. The behavior of these functions on timeseries
objects is the built-in behavior for arrays of objects. Think of a timeseries object as
a single object that you can concatenate into an array of objects. Do not think of each
timeseries itself as an array.
Functions Being Modified
Function or Function
Element Name
What Happens
When You Use
the Function or
Element?
Use This Instead Compatibility Considerations
horzcat No error or
warning
Not applicable You can now use horzcat
with timeseries objects.
isempty
(timeseries)
No error or
warning
timeseries.Length==0 Replace code such as:
isempty(ts)
with:
ts.Length == 0
length
(timeseries)
No error or
warning
timeseries.Length
property
Replace code such as:
length(ts)
with:
ts.Length