フィルターのクリア

Project 3D surface onto 2D plot

85 ビュー (過去 30 日間)
yoni verhaegen
yoni verhaegen 2018 年 1 月 26 日
コメント済み: Oles Matsyshyn 2024 年 6 月 27 日 1:36
Hi all,
I have a set of X,Y,Z data where X and Y represent coordinates and Z the corresponding elevation. How can I now plot a 2D image with the projection of the 3D surface on it?
In stead of:
I'd like to have something like this:
Thanks!
  1 件のコメント
Oles Matsyshyn
Oles Matsyshyn 2024 年 6 月 27 日 1:36
axis equal
colorbar

サインインしてコメントする。

回答 (1 件)

Hyunjung Lee
Hyunjung Lee 2019 年 3 月 15 日
To look at the surface directly overhead of a colored surface, add the following lines after plotting,
shading interp % this changes the color shading (i.e. gets rid of the grids lines on the surface)
view(2) % same as view(0, 90)
Hope this helps!

カテゴリ

Help Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by