필터 지우기
필터 지우기

Using Surf function with matrix

조회 수: 2 (최근 30일)
Scott Dean Seedell
Scott Dean Seedell 2020년 8월 1일
답변: Alan Stevens 2020년 8월 1일
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
Sriram Tadavarty 2020년 8월 1일
Try directly surf(C) and see if the output is as expected.

댓글을 달려면 로그인하십시오.

답변 (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