MATLAB Answers


Superimposed multiple different Surface on Same plot ?

Asked by Magni Wembé Yves on 31 Aug 2017
Latest activity Commented on by José-Luis
on 31 Aug 2017
please Could somebody help me? i wanna superimpose surface like this on the same plot the Position Z=[-1 0 1] it is a housing with : ground floor, Firt floor and Second floor


Show 1 older comment
i trie it with hold on but the all 3 surface are at the Position Z=[0]
Attach your code....
Are you trying to produce blueprints?
I would seriously consider not using Matlab for that. This is what CAD is for.

Sign in to comment.

1 Answer

Answer by José-Luis
on 31 Aug 2017

[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


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.

Sign in to comment.