我正在尝试绘制几个光谱图,我似乎无法强迫matlab正确绘制它们。它们只显示为此
中的行我不明白这个问题是什么,以及为什么它会随机地做到这一点,有时它只是对所有事情感到高兴,有时却无法做到。
figure(1);
set(gcf, 'Visible', 'off');
subplot(6,1,1);
spectrogram(Chan1, Window, overLap,windowSize, sampleFreq, 'yaxis');
colorbar;
axis([0 maxTime 0 75000]);
title('North-South');
subplot(6,1,2);
spectrogram(Chan2, Window, overLap,windowSize, sampleFreq, 'yaxis');
colorbar;
axis([0 timeSerries(end) 0 75000]);
title({'','East-West'});
subplot(6,1,3);
spectrogram(Chan1, Window, overLap,windowSize, sampleFreq, 'yaxis');
colorbar;
axis([0 maxTime 0 10000]);
title({'','North-South'});
subplot(6,1,4);
spectrogram(Chan2, Window, overLap,windowSize, sampleFreq, 'yaxis');
colorbar;
axis([0 timeSerries(end) 0 10000]);
title({'','East-West'});
subplot(6,1,5);
plot(timeSerries, Chan1);
title({'','Noth-Sout',});
axis([0 timeSerries(end) -5000 5000]);
subplot(6,1,6);
plot(timeSerries, Chan2);
title({'','East-West'})
axis([0 timeSerries(end) -5000 5000]);
%Save said plots
saveas(1,summaryPlotName);
clf;
%close('all', hidden);
close('all');
我对matlab很新,所以我可能会遗漏一些明显或基本的东西。我已经尝试绘制光谱图文档中的谱图以及imsec,但它们只会使事情变得更糟。
编辑:我已经清理了工作区,重新启动了matlab,并重新启动了我的电脑,但都无济于事。