Adding a best fit curve to a scatter plot

3 views (last 30 days)
I have a scatter plot consisted of 620 points. I want to set the best fit curve rather than me using the "polyfit" function and then use "polyval". In that case I am the one who changes the degree. I also want to show the equation corresponsing to the best fit curve.
When explaining me the procedure, please use some random numbers to X and Y vectors so I can better understand it.
John Doe
John Doe on 4 May 2019
This video below explains this absolutely perfectly.

Sign in to comment.

Answers (0)




Community Treasure Hunt

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

Start Hunting!

Translated by