Superimposed multiple different Surface on Same plot ?

조회 수: 2 (최근 30일)
Magni Wembé Yves
Magni Wembé Yves 2017년 8월 31일
댓글: José-Luis 2017년 8월 31일
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
KSSV
KSSV 2017년 8월 31일
Attach your code....
José-Luis
José-Luis 2017년 8월 31일
Are you trying to produce blueprints?
I would seriously consider not using Matlab for that. This is what CAD is for.

댓글을 달려면 로그인하십시오.

답변 (1개)

José-Luis
José-Luis 2017년 8월 31일
[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
Magni Wembé Yves
Magni Wembé Yves 2017년 8월 31일
Thanks José-Luis please could You do it with diffrent Peaks so that on any Floor we see different figure ??
José-Luis
José-Luis 2017년 8월 31일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by