【发布时间】:2014-03-14 17:49:33
【问题描述】:
我在下面编写了代码来使用 subplot 在窗口中绘制图形。 但是对于标记,只有第一个子图被标记 我该怎么办? 标题也存在这个问题。
stem(n, h1);
xlabel('n');
ylabel('h1');
subplot(212)
stem(n, h2);
xlabel('n');
ylabel('h2');
【问题讨论】:
-
我想你忘了在
stem(n,h1)之前添加subplot(211)。 -
在继续之前将子图更正为
subplot(2,1,2),已经看到 matlab 版本在这种语法上给出错误。虽然它应该工作。还要添加@Divakar 所指出的第一个子图
标签: matlab matlab-figure matlab-guide matlab-compiler