Project 3D surface onto 2D plot
조회 수: 85 (최근 30일)
이전 댓글 표시
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169481/image.png)
I'd like to have something like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169485/image.jpeg)
Thanks!
답변 (1개)
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!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!