How do I plot 2 surf plots in the same figure

27 vues (au cours des 30 derniers jours)
Jett  Marcos
Jett Marcos le 6 Fév 2018
Commenté : Luis Carrion le 13 Juil 2022
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 commentaire
Luis Carrion
Luis Carrion le 13 Juil 2022
In the sme figure, but different axes:
tiledlayout(rows, columns)
nexttile
surf(X,Y,Z1)
nexttile
surf(X,Y,Z2)

Connectez-vous pour commenter.

Réponse acceptée

Star Strider
Star Strider le 6 Fév 2018
Use the hold (link) function.
figure(1)
surf(X,Y,Z1)
hold on
surf(X,Y,Z2)
hold off
grid on

Plus de réponses (0)

Catégories

En savoir plus sur Graphics Object Properties dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by