Finding equation of a line

5 views (last 30 days)
Suzany Mota
Suzany Mota on 25 May 2019
Answered: Image Analyst on 25 May 2019
Hi,
I have two curves at the same plot, one is linealized (the blue one), and I'd like to have this line's equation, but not with two points collected manually. I would like a code that to this automatically, even if i change the data. Thank you very much in advance.

Answers (1)

Image Analyst
Image Analyst on 25 May 2019
See attached demo for polyfit().

Categories

Find more on Simulink in Help Center and File Exchange

Products


Release

R2015a

Community Treasure Hunt

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

Start Hunting!