3-D surface plot with an array

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

 Accepted Answer

Walter Roberson
Walter Roberson on 18 May 2016
See scatteredInterpolant

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!