Is there a bug in quiver?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaire
Francesco Michelotti
le 5 Oct 2019
I have a problem too with quiver. Everything works well if you invert u and v. I'm checking right now.
Réponses (1)
the cyclist
le 27 Sep 2019
Modifié(e) : the cyclist
le 27 Sep 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);
Voir également
Catégories
En savoir plus sur Vector Fields 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!