Plot 3D data in 2D as lines

4 ビュー (過去 30 日間)
carola forlini
carola forlini 2023 年 5 月 31 日
コメント済み: carola forlini 2023 年 6 月 6 日
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

回答 (1 件)

Cris LaPierre
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)
  1 件のコメント
carola forlini
carola forlini 2023 年 6 月 6 日
Thank you for the reply.
I solved the problem plotting each Z array in 2D simply adding an offset on the y-axis.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by