Polynomial line fitting to dense data

2 views (last 30 days)
Kyuhee Jo
Kyuhee Jo on 15 Mar 2020
Commented: Image Analyst on 16 Mar 2020
Is it possible to perform polynomial regression to data that looks like this?

Answers (2)

Image Analyst
Image Analyst on 15 Mar 2020
Edited: Image Analyst on 15 Mar 2020
Yes, just try it. Attached is a demo. Attach your data if you have trouble.

John D'Errico
John D'Errico on 15 Mar 2020
Of course it is.
help polyfit
Do NOT fit anything of higher order than a straight line to that crap though. You will be kidding yourself if you do.
  13 Comments
Kyuhee Jo
Kyuhee Jo on 15 Mar 2020
For clarification, we are using angles between the three vectors, theta 1 btw R & G and theta 2 btw G&B
Image Analyst
Image Analyst on 16 Mar 2020
Did you try the LDA or PCA classification?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!