Plotting sphere error using surf
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
Error using surf (line 82) Z must be a matrix, not a scalar or vector.
[x z y] = sphere;
a=[ 0.2627 0.2677 0.0479 0.0723 ]
% a=[x position z position y position radius]
surf(x*a(1,4)+a(1,1),z*a(1,4)+a(1,2),y*a(1,4)+a(1,3));
2 comentarios
M
el 22 de Nov. de 2017
If I run your code, here is what I get.

Joseph Lee
el 22 de Nov. de 2017
Respuestas (0)
La pregunta está cerrada.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!