필터 지우기
필터 지우기

how to plot line profiles in 3D

조회 수: 5 (최근 30일)
John
John 2011년 12월 12일
Hi,
Could someone please advise me how I can plot this graph in matlab?
This graph just displays 45 profiles side by side and displayed in 3D. Velocity is on Y axis and time is on the x axis.
This is a 2D example
I would really appreciate the help.
Thank you

답변 (3개)

Sean de Wolski
Sean de Wolski 2011년 12월 12일
mesh will do that with the appropriate settings.
doc mesh

John
John 2011년 12월 12일
Hi,
I'm not very good at matlab, if I import the coordinates like this:
x = load('x.txt.');
y1 = load('y1.txt.');
y2 = load('y2.txt.');
What would be the command to plot the two lines side by side? so it would be (x,y1) and (x,y2).
Thank you very much
John
  댓글 수: 1
Sean de Wolski
Sean de Wolski 2011년 12월 12일
plot(x,y1,'b-',x,y2,'r--')
x/y1 will be a blue and solid, x/y2 will be red dashed

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


John
John 2011년 12월 13일
hi,
What would be the command to plot the lines in the mesh grid so that it looks like this
I used the command above and rotated it but it came out like this
Thanks for the help

카테고리

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