Is there a bug in quiver?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
![quiver.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240127/quiver.jpeg)
댓글 수: 1
Francesco Michelotti
2019년 10월 5일
I have a problem too with quiver. Everything works well if you invert u and v. I'm checking right now.
답변 (1개)
the cyclist
2019년 9월 27일
편집: the cyclist
2019년 9월 27일
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);
![test.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/240135/test.png)
참고 항목
카테고리
Help Center 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!