matlab x=[5,10,20,30,40,50] y=[0.0071,0.021,0.050,0.130,0.388,0.62] 编写求出其关系式的程序附图

来源:学生作业帮助网 编辑:作业帮 时间:2024/12/02 04:29:54
matlab x=[5,10,20,30,40,50] y=[0.0071,0.021,0.050,0.130,0.388,0.62] 编写求出其关系式的程序附图
xQN0h+BώK!w=VzV "$oU&=q f4֌=c7ST` B0 p}$%` H1I< Xh~nOړt}~>wv3֋Y"7~ȇFwuvG*stef$+BwԐ._!ۨnZnrvlP=di(E銪Pr14,\UE-|l7 @TĜI`%\(cLFZq@JP

matlab x=[5,10,20,30,40,50] y=[0.0071,0.021,0.050,0.130,0.388,0.62] 编写求出其关系式的程序附图
matlab x=[5,10,20,30,40,50] y=[0.0071,0.021,0.050,0.130,0.388,0.62] 编写求出其关系式的程序附图

matlab x=[5,10,20,30,40,50] y=[0.0071,0.021,0.050,0.130,0.388,0.62] 编写求出其关系式的程序附图

x=[5,10,20,30,40,50];

 y=[0.0071,0.021,0.050,0.130,0.388,0.62] ;

a=polyfit(x,y,1);

y1=a(1)*x+a(2);

plot(x,y,'.',x,y1,'r');

y= 0.0133*x -0.1413