Borrar filtros
Borrar filtros

Plot 3D data in 2D as lines

10 visualizaciones (últimos 30 días)
carola forlini
carola forlini el 31 de Mayo de 2023
Comentada: carola forlini el 6 de Jun. de 2023
Hi,
I would like to plot my data as showed below. I tried using pcolor/contour with view(0, 90) but I am not able to plot just the lines.
Any suggestion?
Thank you

Respuestas (1)

Cris LaPierre
Cris LaPierre el 31 de Mayo de 2023
Plot your Z array using the plot command. Each column will be treated as a different series.
Share your data so we can be more specific.
[X,Y,Z] = peaks(25);
% as a surface
surf(X,Y,Z)
% as lines
figure
plot(Z)
  1 comentario
carola forlini
carola forlini el 6 de Jun. de 2023
Thank you for the reply.
I solved the problem plotting each Z array in 2D simply adding an offset on the y-axis.

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by