Is there a bug in quiver?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Manuel Cornejo Muñoz
el 27 de Sept. de 2019
Comentada: Francesco Michelotti
el 5 de Oct. de 2019
Dear Sirs
It seems to me that the plot should be wrong because there are two rows of vectors pointing down, when everithing is positive. Is there a bug in the quiver plot function?
Sincerely
Manuel Cornejo

1 comentario
Francesco Michelotti
el 5 de Oct. de 2019
I have a problem too with quiver. Everything works well if you invert u and v. I'm checking right now.
Respuestas (1)
the cyclist
el 27 de Sept. de 2019
Editada: the cyclist
el 27 de Sept. de 2019
It seems to me the problem is that you used matrix operations when you intended array operations. Try this instead:
u = y./sqrt(x.^2+y.^2);
v = x./sqrt(x.^2+y.^2);

Ver también
Categorías
Más información sobre Vector Fields 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!