Matlab曲线拟合

p 输出曲线信息 polyfit调整次幂

x=[0.1,0.2,0.3,0.4,0.5];
y=[-2.89,-3.07,-3.24,-3.4,-3.62];
p=polyfit(x,y,1)
x1=0.:0.05:0.6;
y1=polyval(p,x1);
plot(x,y,’*r’,x1,y1,’-b’)

积攒100万年的幸福 Three Passions

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×