フィルターのクリア

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 Center および File ExchangeSurface and Mesh Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by