Superimposed multiple different Surface on Same plot ?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
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
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 个评论
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 Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!