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 件のコメント

Luis Carrion
Luis Carrion 2022 年 7 月 13 日
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 ExchangeGraphics Object Properties についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by