Info

此问题已关闭。 请重新打开它进行编辑或回答。

how can i obtain least squares polynomial yn?

1 次查看(过去 30 天)
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
.

回答(0 个)

此问题已关闭。

Community Treasure Hunt

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

Start Hunting!

Translated by