Filter löschen
Filter löschen

Surface chart using surf

1 Ansicht (letzte 30 Tage)
Jacqueline Rigatto
Jacqueline Rigatto am 2 Nov. 2020
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

Akzeptierte Antwort

KSSV
KSSV am 2 Nov. 2020
Try
surf(teta_i,f_vector,Ef_teta_T2);
  3 Kommentare
KSSV
KSSV am 2 Nov. 2020
Yes you can.....but it depends on how your data is.
Jacqueline Rigatto
Jacqueline Rigatto am 2 Nov. 2020
I will ask another question about this. Thank you KSSV

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 2 Nov. 2020
Can't you just do
surf(Ef_teta_T2);
  2 Kommentare
Jacqueline Rigatto
Jacqueline Rigatto am 2 Nov. 2020
This doesn't work, because I need to include the direction. Thanks Image Analyst
Image Analyst
Image Analyst am 2 Nov. 2020
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.

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by