How to superimpose one surface onto another?

6 vues (au cours des 30 derniers jours)
A
A le 6 Fév 2014
Réponse apportée : Thomas le 6 Fév 2014
Hello,
I have a basic 'shape' or 'surface' based on a simple formula (i.e., z = x + y).
I have another basic 'shape' or 'surface' based on another simple formula (i.e., z = 2x + y).
I would like a way to superimpose these two 'shapes', 'surfaces', or 'formulae' on top of each other so that they appear in the same 'plot' or 'box'.
How can I accomplish this? I can provide clearer instructions if this is not clear.
Thank you.

Réponses (1)

Thomas
Thomas le 6 Fév 2014
Z=randn(11,11);
Z1=randn(11,11)+2;
X=[1:11];
Y=[1:11];
surf(X,Y,Z)
hold on
surf(X,Y,Z1)
hold off
Two surfaces plotted on the same plot

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by