Info
This question is closed. Reopen it to edit or answer.
how can i obtain least squares polynomial yn?
2 views (last 30 days)
Show older comments
hello everyone, i have data which is uploded on matlab but i dont have function about this data.I just plot the graph but i dont know how to code
question: Obtain the least squares polynomial yn of degree n = 2, 5, 10, 30 which fits the training data. Then use MATLAB’s polyfit function to find the regression polynomial yp of the same degree. Plot data, yp and your approximation yn on the same plot and look at the maximum of the absolute error and the relative error. Comment on the results.I give plot and data which includes x and y below.Thanks a lot
.

1 Comment
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!