tsout = detrend(tsin,method)
subtracts either a mean or a best-fit line from 2-D data in a
timeseries using the specified method, and
also removes all NaN values.
tsout = detrend(tsin,method,ind)
specifies the indices of the columns or rows to detrend. ind is a
vector of integers representing column indices for column-oriented data
(tsin.IsTimeFirst is true) and
representing row indices for row-oriented data (tsin.IsTimeFirst
is false).
Input timeseries containing 2-D data, specified as a
scalar.
Data Types: timeseries
Detrend method, specified as one of the following options:
'constant' — Subtract the mean from
the data.
'linear' — Subtract the best-fit
line from the data.
Row or column indices, specified as a positive integer numeric scalar or
vector. ind represents column indices for column-oriented
data (tsin.IsTimeFirst is true) and
represents row indices for row-oriented data
(tsin.IsTimeFirst is
false).
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.