坐标轴标签的修改。
3 views (last 30 days)
Show older comments
我想标签变成一开始就显示的情况,而不是最后才显示,应该怎么修改? 还有像图片显示那样的公式,我这样做对吗
m=2;%设置m,n值
n=3;
t=0;
a=4; %设置板大小
b=4;
x=0:.1:a; %节点
y=0:.1:b;
[X,Y]=meshgrid(x,y); %X,Y对应x,y产生矩阵。
Modal_shape=4*sin(m*pi*X/a).*sin(n*pi*Y/b).*cos(sqrt((m*pi/a)^2+(n*pi/b)^2)*t); % 模态形状的表示
for ii=1:2 %循环次数
for i=-100:2:100
surf(X,Y,0.01*i*Modal_shape)
axis([0 a 0 b -4 4]) %坐标轴大小
pause(0.001) %暂停程序执行的秒数
xlabel('x','FontSize',11);
ylabel('y');
zlabel('z');
title('驻波图(2,3)');
end
end
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!