How to superimpose one surface onto another?

조회 수: 5 (최근 30일)
A
A 2014년 2월 6일
답변: Thomas 2014년 2월 6일
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.

답변 (1개)

Thomas
Thomas 2014년 2월 6일
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

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by