How to superimpose one surface onto another?

6 visualizzazioni (ultimi 30 giorni)
A
A il 6 Feb 2014
Risposto: Thomas il 6 Feb 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.

Risposte (1)

Thomas
Thomas il 6 Feb 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

Categorie

Scopri di più su Lighting, Transparency, and Shading in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by