how to make curve fitting in matlab ? Firstly, let's edit an M file for testing, codes as follow.
tdata=[1:1:7];
ydata=[0.1,0.3,0.4,0.7,0.6,0.85,0.9];
plot(tdata,ydata,'x')
we run this m file in matlab command window and then the plotting figure will appear as follow,
now, select tools--basic fitting-- select fitting options
in the results, we could see the fitting equations and every discrete fitting point errors. Also, we could find some result of interesting point under the fitting function and plot them in the curve.
It is just for learning exchange, tks!
文章评论(0条评论)
登录后参与讨论