Using Surf function with matrix

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

回答(2 个)

madhan ravi
madhan ravi 2020-8-1

Alan Stevens
Alan Stevens 2020-8-1
What about simply:
surf(C)

类别

Help CenterFile Exchange 中查找有关 Surface and Mesh Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by