필터 지우기
필터 지우기

How to plot 2d curves one after the other ?

조회 수: 3 (최근 30일)
Gaétan Andriano
Gaétan Andriano 2023년 4월 17일
답변: Animesh 2023년 5월 11일
Hi,
I found this curves in a scientific paper and I would like to do the same thing. How can I plot my curves like this example ?
Reference : B. Pier & P.J. Schmid (2017) Linear and nonlinear dynamics of pulsatile channel flow. Journal of Fluid Mechanics 815, 435–480
  댓글 수: 1
Frederic Rudawski
Frederic Rudawski 2023년 4월 17일
I would guess this was done with tikz in LaTeX. If you want to reproduce that with Matlab, you might have to draw all the coordinate axes yourself using plot3. I would start with the last plot and going backwards, so the plot in front are actually on top.

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

답변 (1개)

Animesh
Animesh 2023년 5월 11일
Hi Gaétan Andriano,
I understand that you want to create a single plot by stacking multiple 2D plots in order to highlight the changes in the plot when certain control parameter is changed.
To accomplish something similar, MATLAB has an inbuilt function called ‘plot3’, where in you can plot multiple 2D data at specific 3rd dimension values which can be according to the control parameter.
For more information on this, please consider having a look at the following links:
  1. https://in.mathworks.com/matlabcentral/answers/514641-how-can-i-plot-a-3d-waterfall
  2. https://in.mathworks.com/matlabcentral/answers/895237-stacking-multiple-2d-plots-in-one-3d-plot
  3. Plot3 documentation: https://in.mathworks.com/help/matlab/ref/plot3.html
I hope this helps.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by