Navigation

Operators and Keywords

Function List:

C++ API

detrend.m File Reference


Functions

 elseif (nargin==2) if(!(isscalar(p)&&p
endif else print_usage ()
 if (m==1) x
 !assert (all(all(abs(y)< 20 *eps)))
 !assert (all(all(abs(y)< 30 *eps)))

Variables

function y
 endif [m, n] = size (x)
endif r = rows (x)
 b = ((1 : r)' * ones (1, p + 1)) .^ (ones (r, 1) * (0 : p))
endif endfunction!test !N = 32
 !x = (0:1:N-1)/N + 2
 !y = detrend(x)
 !t = (0:1:N-1)/N

Function Documentation

!assert ( all(all(abs(y)< 30 *eps))   ) 

!assert ( all(all(abs(y)< 20 *eps))   ) 

elseif ( nargin  = =2  ) 

if ( = =1  ) 

endif else print_usage (  ) 


Variable Documentation

!test !N = 32

!t = (0:1:N-1)/N

!x = (0:1:N-1)/N + 2

!y = detrend(x)

b = ((1 : r)' * ones (1, p + 1)) .^ (ones (r, 1) * (0 : p))

endif[m, n] = size (x)

endif r = rows (x)

y

Initial value:

 detrend (x, p)

  if (nargin == 1)
    p = 1