matlab中函数绘图问题!i=1;for x=0:0.01:0.2y1=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.53)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*0.53));y2=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.45)/((471.016
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/28 14:32:02
matlab中函数绘图问题!i=1;for x=0:0.01:0.2y1=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.53)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*0.53));y2=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.45)/((471.016
matlab中函数绘图问题!
i=1;
for x=0:0.01:0.2
y1=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.53)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*0.53));
y2=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.45)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*0.45));
y3=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.72)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*0.72));
y4=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.96)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*0.96));
y5=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*1.1)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*1.1));
y6=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*1.57)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*1.57));
y7=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*1.41)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*1.41));
y8=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*1.52)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*1.52));
i=i+1;
end
x=0:0.01:0.2;
plot(x,y1,x,y2,x,y3,x,y4,x,y4,x,y5,x,y6,x,y7,x,y8)
怎么图片框中没有图像?我是借用一下matlab,以前没学过,
matlab中函数绘图问题!i=1;for x=0:0.01:0.2y1=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.53)/((471.016*x.^3-135.469*x.^2-0.331*x+2.777)*(1.35+32.4*0.53));y2=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.45)/((471.016
首先,不需要for 循环,因为matlab是矩阵运算
其次,在y的运算中,乘法和除法都要点乘和点除,
其他没什么问题
x=0:0.01:0.2;
y1=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.53)./((471.016*x.^3-135.469.*x.^2-0.331*x+2.777)*(1.35+32.4*0.53));
y2=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.45)./((471.016*x.^3-135.469.*x.^2-0.331*x+2.777)*(1.35+32.4*0.45));
y3=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.72)./((471.016*x.^3-135.469.*x.^2-0.331*x+2.777)*(1.35+32.4*0.72));
y4=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*0.96)./((471.016*x.^3-135.469.*x.^2-0.331*x+2.777)*(1.35+32.4*0.96));
y5=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*1.1)./((471.016*x.^3-135.469.*x.^2-0.331*x+2.777)*(1.35+32.4*1.1));
y6=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*1.57)./((471.016*x.^3-135.469.*x.^2-0.331*x+2.777)*(1.35+32.4*1.57));
y7=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*1.41)./((471.016*x.^3-135.469.*x.^2-0.331*x+2.777)*(1.35+32.4*1.41));
y8=(1.15*(471.016*x.^3-135.469*x.^2-0.331*x+2.777)+0.2+32.4*1.52)./((471.016*x.^3-135.469.*x.^2-0.331*x+2.777)*(1.35+32.4*1.52));
plot(x,y1,x,y2,x,y3,x,y4,x,y4,x,y5,x,y6,x,y7,x,y8)