aniylj

MATLAB拟合

http://yinfulin2008.blog.163.com/blog/static/37961257200932553944288/

 

>> x=10:100; 
>> y=[0.067,0.143,0.231,0.308,0.374]; 
>> p=polyfit(x,y,1); 
>> xx=0:20:100; 
>> plot(x,y,\'o\',xx,polyval(p,xx)) 
>> poly2sym(p,\'x\')

ans =

779/4000*x-5245792845961277/576460752303423488

>> vpa(ans,8)

ans =

.19475000*x-.91000000e-2

即y=0.19475x-0.0091

 

posted on 2014-05-13 18:44  奋斗牛小二  阅读(76)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-12-22
  • 2021-11-29
  • 2022-01-23
  • 2022-12-23
  • 2021-09-06
  • 2021-12-10
  • 2021-11-17
猜你喜欢
  • 2021-07-11
  • 2021-10-20
  • 2021-08-23
  • 2022-01-05
  • 2021-12-27
  • 2021-09-07
  • 2021-06-07
相关资源
相似解决方案