How to superimpose one surface onto another?

5 Ansichten (letzte 30 Tage)
A
A am 6 Feb. 2014
Beantwortet: Thomas am 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.

Antworten (1)

Thomas
Thomas am 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

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by