How do I plot 2 surf plots in the same figure

so I have 2 surf plots Z1 and Z2. I can plot both separately using
surf(X,Y,Z1) and
surf(X,Y,Z2)
but how do I plot them together on the same plot?

댓글 수: 1

In the sme figure, but different axes:
tiledlayout(rows, columns)
nexttile
surf(X,Y,Z1)
nexttile
surf(X,Y,Z2)

댓글을 달려면 로그인하십시오.

 채택된 답변

Star Strider
Star Strider 2018년 2월 6일

0 개 추천

Use the hold (link) function.
figure(1)
surf(X,Y,Z1)
hold on
surf(X,Y,Z2)
hold off
grid on

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2018년 2월 6일

댓글:

2022년 7월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by