Borrar filtros
Borrar filtros

How to superimpose one surface onto another?

2 visualizaciones (últimos 30 días)
A
A el 6 de Feb. de 2014
Respondida: Thomas el 6 de Feb. de 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.

Respuestas (1)

Thomas
Thomas el 6 de Feb. de 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

Categorías

Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by