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

1 次查看(过去 30 天)
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