| Contents | Index |
Maximum value of timeseries data
ts_max = max(ts)
ts_max = max(ts,Name,Value)
ts_max = max(ts) returns the maximum value in the timeseries data.
ts_max = max(ts,Name,Value) returns the maximum value in the timeseries data with additional options specified by one or more Name,Value pair arguments.
ts |
The timeseries object for which you want to determine the maximum data value. |
Specify optional comma-separated pairs of Name,Value arguments, where Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.
The following example illustrates how to find the maximum values in multivariate time-series data:
% Load a 24-by-3 data array: load count.dat % Create a timeseries object with 24 time values: count_ts = timeseries(count,[1:24],'Name','CountPerSecond') % Find the maximum in each data column for this timeseries object: max(count_ts)
MATLAB returns:
114 145 257
iqr | mean | median | min | std | sum | timeseries | var

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 |