Using Surf function with matrix

Can anyone give a quick solution how I can generate a surface plot using 3x column matrix (C attached).
when using: surf(C(:,1),C(:,2),C(:,3))
I get the message 'Z must be a matrix, not a scalar or vector'
Thanks

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by