23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

y =<br />

-0.0000<br />

1.0000<br />

-2.0000<br />

1.0000<br />

0.0000<br />

1.0000<br />

-2.0000<br />

1.0000<br />

-0.0000<br />

detrend<br />

Note that the breakpoint is specified to be the fifth element, which is the data<br />

point shared by the two segments.<br />

Algorithm detrend computes the least-squares fit of a straight line (or composite line for<br />

piecewise linear trends) to the data and subtracts the resulting function from<br />

the data. To obtain the equation of the straight-line fit, use polyfit.<br />

See Also polyfit<br />

2-437

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!