Surface chart using surf
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jacqueline Rigatto
el 2 de Nov. de 2020
Comentada: Jacqueline Rigatto
el 2 de Nov. de 2020
I can make a surface chart using the surf with the following information:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/400349/image.png)
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/400354/image.png)
I thank you for your help
0 comentarios
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 2 de Nov. de 2020
Can't you just do
surf(Ef_teta_T2);
2 comentarios
Image Analyst
el 2 de Nov. de 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.
Ver también
Categorías
Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!