Borrar filtros
Borrar filtros

how to plot line profiles in 3D

5 visualizaciones (últimos 30 días)
John
John el 12 de Dic. de 2011
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

Respuestas (3)

Sean de Wolski
Sean de Wolski el 12 de Dic. de 2011
mesh will do that with the appropriate settings.
doc mesh

John
John el 12 de Dic. de 2011
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 comentario
Sean de Wolski
Sean de Wolski el 12 de Dic. de 2011
plot(x,y1,'b-',x,y2,'r--')
x/y1 will be a blue and solid, x/y2 will be red dashed

Iniciar sesión para comentar.


John
John el 13 de Dic. de 2011
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

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by