x=linspace(0.0001,0.01,1000); y=sin(1./x); plot(x,y) axis([0.005 0.01 –1 1]) 为什么无法绘图

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/18 06:37:28
x=linspace(0.0001,0.01,1000);y=sin(1./x);plot(x,y)axis([0.0050.01–11])为什么无法绘图x=linspace(0.0001,0.01,

x=linspace(0.0001,0.01,1000); y=sin(1./x); plot(x,y) axis([0.005 0.01 –1 1]) 为什么无法绘图
x=linspace(0.0001,0.01,1000); y=sin(1./x); plot(x,y) axis([0.005 0.01 –1 1]) 为什么无法绘图

x=linspace(0.0001,0.01,1000); y=sin(1./x); plot(x,y) axis([0.005 0.01 –1 1]) 为什么无法绘图
运行了一下:
axis([0.005 0.01 –1 1]) 中的负号不是数学符号,你用的是划线,将-1的‘-’符号改改就行了

编程是个细心活,不适合粗心大意的人:
x=linspace(0.0001,0.01,1000); y=sin(1./x); plot(x,y);axis([0.005 0.01 -1 1])

x=linspace(0,2*pi)在matlab中是什么意思 MATLAB中,x=linspace(0,2*pi, x=linspace(0.0001,0.01,1000); y=sin(1./x); plot(x,y) axis([0.005 0.01 –1 1]) 为什么无法绘图 rho=linspace(0,1,100); theta=linspace(0,2*pi,100); x=rho'*cos(theta); y=rho'*sin(theta) 为什么要加转置符号? MATLAB的问题x=linspace(-5,5);if x>=0;y=sqrt(x)if x 下面这个程序错误 急x=linspace(0,400,5);y=linspace(0,100,3);z2=linspace(-1.5,1.5,7);z3=linspace(-1.5,1.5,7);z4=linspace(-1.5,1.5,7);x=atan((z4+z3-z2)/(z2+z3-z4));y=asin(sqrt(((z3).^2+(z4-z2).^2)./2));z2=17/50*((z3).^2-(z4-z2).^2)+z3-z4;>> plo MATLAB meshgrid x=1:4y=linspace(1,2,2)[X,Y]=meshgrid(x,y) 关于matlab的问题,请您指教> [x,y]=meshgrid(linspace(0.05,0.95),linspace(0.00008,0.0005));z=1-(0.000554*x*y)/(1+0.000554*y):mesh(x,y,z)Warning:Matrix is singular to working precision.z =NaN matlab 隐函数三维图问题我用的isosurface和 patch,我的程序是:function sita45[x,y,z]=meshgrid(linspace(-150,150,200),linspace(-150,150,200),linspace(-150,150,200));v=(3*x./(x+y+z)-1.13).^2+(3*y./(x+y+z)-0.75).^2+(3*z./(x+y+z)-1.13).^2 创建z=exp(x+i*y)在x=linspace(-1,1,100);y=linspace(-2*pi,2*pi,100);内的三维网图,表面图,等高线图 matlab画图不输出图形linspace(0,1500,150000);y=[];syms x;x=x+0;for x=1:1500;if x matlab >> syms x y;x=linspace(0,2*pi,60);y=(sin(x)*cos(5*x));plot(x,y) 无法出图, matlab里的linspace(x,y*pi,z) 和 linspace(x:y:z) 是一个意思吗 matlab surf用法xgrid=linspace(0,100,10000);ygrid=linspace(0,100,10000);[x,y]=meshgrid(xgrid,ygrid);z=(3236*x.^2*y+1109*x.^2+5416*x*y.^2+6616*x*y+1445*x+2199*y.^2+1990*y+318)./[1000*(2*x+1)*(2*y+1)*(x+y+1)];surf(x,y,z); matlab中t=linspace(0,2*pi,100);x=[t;t]';y=[sin(t);cos(t)]';plot(x,y), matlab的rotate语句出错,figure(2)colormap('flag');n=100;x=linspace(-3,3,n);y=linspace(-3,3,n);z=linspace(-3,3,n);[X,Y,Z]=ndgrid(x,y,z);F=(X.^2+(9/4) .* (Y.^2)+Z.^2-1).^3-X.^2 .* Z.^3-(1/9) .* Y.^2 .* Z.^3isosurface(F,0)axis equalview([55 34]);tit matlab编程问题z(find(z>0))=nan作何解释a1=-0.05;%微凸体1的参数y=a*x^2+b*y^2+cb1=-0.2;c1=5;x=linspace(-sqrt(abs(c1/a1)),sqrt(abs(c1/a1)),100);y=linspace(-sqrt(abs(c1/b1)),sqrt(abs(c1/b1)),100);[x,y]=meshgrid(linspace(-sqrt(abs(c1/a1)),sqr matlab仿真老是出现错误,请问怎么改?clear;clc;deta=2;w=2.5;theta=0;a=linspace(-10,10,25);b=linspace(-1.0,1.0,25);[x,y]=meshgrid(a,b);s(x,y)=exp(-0.5*((x/deta)^2+(y/deta)^2)).*sin(w*(x*cos(theta)+y*sin(theta)));plot3(x,y,s(x,y)); Subscript