detrending data using linear regression

Hi,
I wanna detrend my data using linear regression. I don't wanna use the 'detrend' function of matlab.
Can anyone help me in the right direction?
Thanks

回答 (1 件)

Rik
Rik 2018 年 5 月 28 日

0 投票

Why do you not want to use the detrend function?
If you want a linear fit, you can use polyfit, but you can also use \.

カテゴリ

ヘルプ センター および File ExchangeDescriptive Statistics についてさらに検索

質問済み:

NS
2018 年 5 月 28 日

回答済み:

Rik
2018 年 5 月 28 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by