Plot 3D data in 2D as lines

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

Answers (1)

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 Comment

Thank you for the reply.
I solved the problem plotting each Z array in 2D simply adding an offset on the y-axis.

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 31 May 2023

Commented:

on 6 Jun 2023

Community Treasure Hunt

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

Start Hunting!