Plot 3D data in 2D as lines
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
回答(1 个)
Cris LaPierre
2023-5-31
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)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!