Superimposed multiple different Surface on Same plot ?

please Could somebody help me? i wanna superimpose surface like this on the same plot ...at the Position Z=[-1 0 1] it is a housing with : ground floor, Firt floor and Second floor

4 comentarios

KSSV
KSSV el 31 de Ag. de 2017
What problem you are facing? Use hold on and do the way you have done as shown in figure.
i trie it with hold on but the all 3 surface are at the Position Z=[0]
KSSV
KSSV el 31 de Ag. de 2017
Attach your code....
Are you trying to produce blueprints?
I would seriously consider not using Matlab for that. This is what CAD is for.

Iniciar sesión para comentar.

Respuestas (1)

[X,Y,Z] = peaks(25);
floor_space = 10;
%First floor
surf(X,Y,Z); hold on
%Second floor
surf(X,Y,Z + floor_space);
%Third floor
surf(X,Y,Z + 2.*floor_space); hold on

2 comentarios

Thanks José-Luis please could You do it with diffrent Peaks so that on any Floor we see different figure ??
Peaks is just a placeholder, used to generate synthetic data. Why don't you use your own data and use an offset for the z values, which is what my answer suggests.

Iniciar sesión para comentar.

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 31 de Ag. de 2017

Comentada:

el 31 de Ag. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by