| Contents | Index |
Extract data samples into new timeseries object
ts1 = getsampleusingtime(ts, time)
ts1 = getsampleusingtime(ts, starttime, endtime)
ts1 = getsampleusingtime(ts, time) returns a new timeseries object, ts1, with a single sample corresponding to specified time in ts.
ts1 = getsampleusingtime(ts, starttime, endtime) returns a new timeseries object, ts1, with samples between the times starttime and endtime in ts.
If the time vector in ts is not relative to a calendar date, then starttime and endtime must be numeric.
If the time vector in ts is relative to a calendar date, then starttime and endtime values must be dates—either strings or datenum values.
ts1 |
A timeseries object that contains the subset of data samples from the original timeseries object. |

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |