Using 3D Surface Plots

조회 수: 1 (최근 30일)
Waseem Aldeek
Waseem Aldeek 2016년 3월 10일
댓글: Star Strider 2016년 3월 29일
Say i have 3 arrays X, Y, Z full of data which correspond to the x co-ordinate, y co-ordinate and a value at that point, is it possible to plot this as a surface plot?(Co-ordinates correspond to mesh points of a 2D structure). My understanding of how they are plotted is limited and the using the help for surface() did not help.
Thanks

채택된 답변

Star Strider
Star Strider 2016년 3월 10일
I don’t know what your data are. If they are matrices, use the surf or mesh functions. The scatteredInterpolant function is another option. If they are vectors, I would use plot3 or scatter3.
  댓글 수: 4
Waseem Aldeek
Waseem Aldeek 2016년 3월 29일
Thanks alot for your help, much appreciated!
Star Strider
Star Strider 2016년 3월 29일
My pleasure!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by