代码搜索结果

找到约 10,000 项符合 E 的代码

e0613.m

x=0:10;y=sin(x);xi=0:.25:10; % 将插值方法定义为单元数组 strmod={'nearest','linear','spline','cubic'} % 将X轴标识定义为单元数组 strlb={'(a) method=nearest', '(b) method=linear','(c) method=spline', '(d) m

e0653.m

H_fig=figure %建立图形窗口 set(H_fig,'MenuBar','none');%隐藏标准菜单 set(gcf,'menubar',menubar); %隐藏标准菜单 set(gcf,'menubar','figure'); %恢复标准菜单的显示

e0610.m

x=0:0.01:2*pi;r=3./(((cos(x)).^2).^(1/3)+((sin(x)).^2).^(1/3)).^(3/2); polar(x,r)

e0637.m

x=-1:0.05:1;y=x;[x,y]=meshgrid(x,y); z=x.^2+2*y.^2; colormap(copper); subplot(1,3,1);surf(x,y,z);title('shading faceted') subplot(1,3,2);surf(x,y,z);shading flat;title('shading flat') subplot(1,3

e0632.m

%方法1: x=-1:0.05:1;y=x; [x,y]=meshgrid(x,y); z=x.^2-2*y.^2;mesh(x,y,z) %方法2: syms x y;f=x^2-2*y^2; ezmesh(f) %-2 ≤x≤2 ,-2 ≤y≤2 。 %方法3: ezmesh('x','y','x^2-2*y^2',[-1,1,-1,1]) %-1≤x≤1,-1≤y≤1

e0604.m

figure x=0:pi/100:2*pi; y=2*sin(2*x)+3*sin(3*x)*i; subplot(1,2,1),plot(x,y)%绘制复数矩阵的实部部分 title('This is figure of the real part .'); %给图形加上标题 xlabel('x'); %给x轴加标注 ylabel('real(y)'); %给y轴加标注 subpl

e0639.m

[x,y,z]=sphere(50); m=moviein(30); %建立一个30列大矩阵 for i=1:30 surf(i*x,i*y,i*z) %绘制球面 m(:,i)=getframe; %将球面保存到m矩阵 end movie(m,10); %以每秒10幅的速度播放球面

e0603.m

x=0:pi/100:2*pi;y1=2*sin(2*x);y2=3*sin(3*x); plot(x,y1,x,y2)%在同一个坐标系分别绘制二维图形 title('This is figure of the third example. '); %给图形加上标题 xlabel('x'); %给x轴加标注 ylabel('y'); legend('2*sin(2*x)' ,'3*

e0611.m

t=0:pi/20:4*pi;y=exp(-0.2*t).*(cos(t)+i*sin(t)); subplot(2,2,1),plot(t,y); %只绘制实部图形 title('plot of complex function vs time');xlabel('t');ylabel('y(t)'); t=0:pi/20:4*pi;y=exp(-0.2*t).*(cos(t)+i*si

e0617.m

subplot(2,2,1); fplot('x^2+1',[-6 6]);title('1-1') subplot(2,2,2);fplot('x^2+1',[-6 6],2e-6);title('1-2') subplot(2,2,3);fplot('x^3+x^2+4',[-6 6]);title('1-3') subplot(2,2,4);fplot('x^3+x^2+4',[-6