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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 00:01:24
matlabx=[5,10,20,30,40,50]y=[0.0071,0.021,0.050,0.130,0.388,0.62]编写求出其关系式的程序附图matlabx=[5,10,20,30,40

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