필터 지우기
필터 지우기

Is there a bug in quiver?

조회 수: 1 (최근 30일)
Manuel Cornejo Muñoz
Manuel Cornejo Muñoz 2019년 9월 27일
댓글: Francesco Michelotti 2019년 10월 5일
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
  댓글 수: 1
Francesco Michelotti
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
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
See this documentation for details.
  댓글 수: 1
Manuel Cornejo Muñoz
Manuel Cornejo Muñoz 2019년 10월 1일
I am a beginner. Thank you very much

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by