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

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 日

0 投票

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 件)

カテゴリ

製品

リリース

R2017a

タグ

質問済み:

2019 年 4 月 16 日

コメント済み:

2019 年 4 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by