MATLAB COMPILER RELEASE NOTES User's Guide Page 303

  • Download
  • Add to my manuals
  • Print
  • Page
    / 716
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 302
Data Analysis
12-11
Function or Function
Element Name
What Happens
When You Use
the Function or
Element?
Use This Instead Compatibility Considerations
size
(timeseries)
No error or
warning
[timeseries.Length 1] Replace code such as:
size(ts)
with:
[ts.Length 1]
subsref No error or
warning
getsamples Replace code such as:
t3 = t1(1:3);
with:
getsamples(t1,1:3);
vertcat
(timeseries)
May return
Index exceeds
matrix
dimension error
append Replace code such as:
t3 = [t1;t2];
with
t3 = append(t1,t2);
Example of timeseries Object Concatenation
Suppose you concatenate the following two timeseries objects:
t1 = timeseries(ones(5,1),0:4);
t2 = timeseries(zeros(5,1),5:9);
In R2010a, the following syntax created a single timeseries object, t3, with 10 samples
spanning the time range 0-9. The first 5 samples derived from t1 and the last 5 samples
derived from t2. The size of the timeseries, t3, was [10 1] and its length was 10,
because t3 has 10 samples.
t3 = [t1;t2]
t3 = vertcat(t1,t2)
Now, the same syntax creates a 2x1 array comprising the two timeseries objects t1
and t2. Its size is [2 1], and its length is 2 because the array has two rows, each a
single timeseries.
Page view 302
1 2 ... 298 299 300 301 302 303 304 305 306 307 308 ... 715 716

Comments to this Manuals

No comments