필터 지우기
필터 지우기

Stacking Multiple 2D plots in one 3D plot

조회 수: 108 (최근 30일)
Amir Hosein Shokouhy
Amir Hosein Shokouhy 2021년 8월 9일
댓글: Amir Hosein Shokouhy 2021년 8월 10일
Hi,
I have 14 two dimensional plots and I want to show them all in a 3D plot like this:
I can plot the 14 plots in the same 2d plot but I want to have an offset between them and plot them in a 3d plot.
figure(1)
for i=1:size(nw,1)
h_FDD_dB(i) = plot(f_FDD,pow2db(SV_FDD{i,1}),'DisplayName',['SV1, No. of windows: ',num2str(i)]);
xlabel('Frequency (Hz)');
ylabel('Singular Value (Power Spectral Density)(dB)');
title('Singular Values of the SD Matrix')
xlim([0 60])
legend
hold on
grid on
end
legend(h_FDD_dB);
nw = 1:1:14;
and f_FDD & SV_FDD{i,1} are 65537*1 vectors.
Thanks,
Amir

채택된 답변

Adam Danz
Adam Danz 2021년 8월 9일
Check out the following resources. If you get stuck implementing a solution, share your updated code and we can help you get unstuck.
  댓글 수: 7
Adam Danz
Adam Danz 2021년 8월 9일
Great! You can also switch the first and second inputs to control whether the data vary across the X or y axes.
Amir Hosein Shokouhy
Amir Hosein Shokouhy 2021년 8월 10일
I'll give it a try, thanks again Adam!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by