Home > freetb4matlab > signal > detrend.m

detrend

PURPOSE ^

% If @var{x} is a vector, @code{detrend (@var{x}, @var{p})} removes the

SYNOPSIS ^

function y = detrend (x, p)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {} detrend (@var{x}, @var{p})
% If @var{x} is a vector, @code{detrend (@var{x}, @var{p})} removes the
% best fit of a polynomial of order @var{p} from the data @var{x}.
%
% If @var{x} is a matrix, @code{detrend (@var{x}, @var{p})} does the same
% for each column in @var{x}.
%
% The second argument is optional.  If it is not specified, a value of 1
% is assumed.  This corresponds to removing a linear trend.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003