MATLAB 为什么我的figure(2)显示不出来 急急急~

clear all
clc
N=200;
n=1:N;
s1=2*sin(0.2*pi*n);
s2=square(0.2*pi*n,50);
s3=sawtooth(0.1*pi*n);
s4=rand(1,N);
s=[s1;s2;s3;s4];
W=rand(4);
X=W*s;

figure(1)
subplot(4,1,1);
plot(s1);
axis([0 N -5 5]);
title('源信号');
subplot(4,1,2);
plot(s2);
axis([0 N -5 5]);
subplot(4,1,3);
plot(s3);
axis([0 N -5 5]);
subplot(4,1,4);
plot(s4);
axis([0 N -5 5]);
Xlable('Time');

figure(2);
subplot(1,4,1);
plot(X(1,:));
axis([0 N -5 5]);
subplot(1,4,2);
plot(X(2,:));
axis([0 N -5 5]);
subplot(1,4,3);
plot(X(3,:));
axis([0 N -5 5]);
subplot(1,4,4);
plot(X(4,:));
axis([0 N -5 5]);

把Xlable('Time');改成Xlabel('Time');就行了。
温馨提示:答案为网友推荐,仅供参考
第1个回答  2014-04-22
好吧,我笑了。。。为什么不能看看红色的错误提示呢?楼上回答正确,Xlable('Time');这句就执行不下去了,怎么给你现实figure(2)本回答被网友采纳
相似回答