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 Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by