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;forx=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)/(

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)

matlab中函数绘图问题程序如下:>> t=0:1:100;>> y=t;>> x=0;>> for i=1:length(t)if t(i) 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常用的绘图函数 matlab含有字母常量绘图问题,比如这个函数t是自变量,其他都是常量,如何绘图呢? MATLAB复数符号指数绘图H =7*abs(exp(i*w)-5)/abs(exp(i*w)-1)/abs(exp(i*w)-3)/abs(exp(i*w)-5);w=0:pi/50:2*pi;怎么画出H函数图象? 在matlab中,plot是描点绘图,ezplot是函数绘图,请问ez是什么意思,是那个单词的缩写 matlab (cos(x))^2函数绘图 matlab 函数 绘图失败a=vpa(zeros(1,P_N+1)); xx(i+1)=vpa(i/360); plot(xx,a,'-r') ;plot Conversion to double from sym is noConversion to double from sym is not possible .求指点 MATLAB中如何用矩阵变量绘制图形?在使用矩阵的变量元素作为方程变量进行绘图时MATLAB总是提示错误:Error using plotConversion to double from sym is not possible.比如简单的绘图问题:syms t;a=[1,2*t ,3; 4,5,6 请教高手matlab中的erfc函数绘图问题请教高手matlab中的erfc函数问题:T=erfc(z),z=(0.000183*R^2-1)/2*sqrt(1.013*(0.0178-0.000183*R^2);现在如何绘出T与R间的二维曲线,这是函数 关于matlab三维绘图的问题想把图中的每条曲线用曲面连起来,该怎么办? 每条曲线的数据都存在一个矩阵组变量,如a(i)中,问题的关键是每个矩阵的长度都不一样.matlab自己提供的三维曲面绘图 matlab 如何做分段函数的绘图 y=sin(x)*(-2*pi=0) matlab y=1/x ,1≤x≤100如何用matlab计算及绘图 在matlab绘图中,x=0:0.1:4*pi;此语句中,0,0.1, Matlab线性规划问题目标函数要是取最值的式子怎么用Matlab写,如目标函数为min f=max{xi}(i=1,2,3,4) Matlab绘图In an assignment A(I) = B,the number of elements in B and I must be the same自定义了一个函数X=F(t),函数里有一数组变量a[1]=t; a[2]=2*t; 要对a[1],a[2]做循环运算,当绘图时,t=1:50.t变成数组就出问题了.(注 matlab分段函数绘图y=x,x∈(-10,1);y=x^2,x∈[1,4];y=2^x,x∈(4,10). matlab fplot函数创建 y=funfplot(x) y=sin(1/tan(pi*x)) 在[-0.1,0.1]上 令误差tol=2e-4 绘图