필터 지우기
필터 지우기

Surface chart using surf

조회 수: 1 (최근 30일)
Jacqueline Rigatto
Jacqueline Rigatto 2020년 11월 2일
댓글: Jacqueline Rigatto 2020년 11월 2일
I can make a surface chart using the surf with the following information:
I was trying to do:
surf(Ef_teta_T2(:,1),f_vector,teta_i);
...
surf(Ef_teta_T2(:,36),f_vector,teta_i);
But the message appeared:
Error using surf
Z must be a matrix, not a scalar or vector.
The graph I intend to make is the same as this:
I thank you for your help

채택된 답변

KSSV
KSSV 2020년 11월 2일
Try
surf(teta_i,f_vector,Ef_teta_T2);
  댓글 수: 3
KSSV
KSSV 2020년 11월 2일
Yes you can.....but it depends on how your data is.
Jacqueline Rigatto
Jacqueline Rigatto 2020년 11월 2일
I will ask another question about this. Thank you KSSV

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

추가 답변 (1개)

Image Analyst
Image Analyst 2020년 11월 2일
Can't you just do
surf(Ef_teta_T2);
  댓글 수: 2
Jacqueline Rigatto
Jacqueline Rigatto 2020년 11월 2일
This doesn't work, because I need to include the direction. Thanks Image Analyst
Image Analyst
Image Analyst 2020년 11월 2일
If you're going to use the surf(x,y,z) version with all of them being vectors, then they all need to have the same length. Yours don't.

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

카테고리

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