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!