detrending data using linear regression

2 views (last 30 days)
NS
NS on 28 May 2018
Answered: Rik on 28 May 2018
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

Answers (1)

Rik
Rik on 28 May 2018
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 \.

Community Treasure Hunt

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

Start Hunting!