原创 怎样在MATLAB做基本的曲线拟合

2014-11-9 22:01 1633 22 2 分类: 工程师职场

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,

20141109214629619001.jpg

now, select tools--basic fitting-- select fitting options

20141109214637144002.gif20141109214645786003.jpg

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.

20141109214653960004.jpg

It is just for learning exchange, tks!

 

 

文章评论0条评论)

登录后参与讨论
我要评论
0
22
关闭 站长推荐上一条 /2 下一条