MATLAB: 3-D surface plot with an array

surface

Dear all, I have a matrix A=[n,3] which
A(n,1) is the x-coordinate,
A(n,2) is the y-coordinate,
A(n,3) is the magnitude.
I want to plot a surface but the command 'surf' requires A(n,3) is a matrix of size of A(n,1) and A(n,2) Could you please help. Thanks

Best Answer

See scatteredInterpolant
Related Question