How to split plots?
24 次查看(过去 30 天)
显示 更早的评论
hello, after the program is launched, one plot is displays, after clicking the space bar, the second graph is displayed instead of the first plot. How to seperate them to display in two different windows by using subplot?
t=t(M:Nx-M+1); f=fpr/(2*M)*(-M:M-1);
mesh(t,f,X); view(-40,70); axis tight;
xlabel('czas [s]'); ylabel('częstotliwość [Hz]'); pause
imagesc(t,f,X); xlabel('czas [s]'); ylabel('częstotliwość [Hz]'); pause
1 个评论
Adam
2019-1-9
There's only one plot instruction in that code, but I'd have thought
doc subplot
explains its usage very clearly with examples? what part iof the help do you not understand?
回答(1 个)
madhan ravi
2019-1-9
t=t(M:Nx-M+1); f=fpr/(2*M)*(-M:M-1);
subplot(2,1,1)
mesh(t,f,X);
view(-40,70);
axis tight;
xlabel('czas [s]');
ylabel('częstotliwość [Hz]');
pause
subplot(2,1,2)
imagesc(t,f,X);
xlabel('czas [s]');
ylabel('częstotliwość [Hz]');
pause
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Subplots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!