How to draw a 3D surface plot with some disordering points?

조회 수: 1 (최근 30일)
Jian Shi
Jian Shi 2019년 4월 16일
댓글: Jian Shi 2019년 4월 16일
I want to draw a 3D surface with the data in the annex.
x, y, z means the X-axis, Y-axis, Z-axis,respectively.
In fact (x,y) is a mesh of the unit square, but not in order. Thus I don't know how to apply mesh or surface on the data.

채택된 답변

KSSV
KSSV 2019년 4월 16일
load data.mat ;
xi = unique(x) ;
yi = unique(y) ;
[X,Y] = meshgrid(xi,yi) ;
Z = griddata(x,y,z,X,Y) ;
surf(X,Y,Z)

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by