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
댓글 수: 1
Sriram Tadavarty
2020년 8월 1일
Try directly surf(C) and see if the output is as expected.
답변 (2개)
madhan ravi
2020년 8월 1일
surf(C)
Alan Stevens
2020년 8월 1일
What about simply:
surf(C)
카테고리
도움말 센터 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!