Surface chart using surf
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Jacqueline Rigatto
le 2 Nov 2020
Commenté : Jacqueline Rigatto
le 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
0 commentaires
Réponse acceptée
Plus de réponses (1)
Image Analyst
le 2 Nov 2020
Can't you just do
surf(Ef_teta_T2);
2 commentaires
Image Analyst
le 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.
Voir également
Catégories
En savoir plus sur Surface and Mesh Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
