How do I plot points with a certain direction and length?
조회 수: 1 (최근 30일)
이전 댓글 표시
Specifically I have a velocity a function that gives velocities in the x and y direction and I would like the direction of this velocity to always be heading at 45 degrees. And the direction arrow would be 2x the length of the magnitude of the velocity.
Any help on how to do this would be much appreciated
댓글 수: 1
Image Analyst
2015년 4월 29일
Well, what if your function does not give velocities in the 45 degree direction? What then? Are you 100% sure it will give velocities in that direction? What if it gives 44.999999 degrees or 45.000000001 degrees? See the FAQ: http://matlab.wikia.com/wiki/FAQ#Why_is_0.3_-_0.2_-_0.1_.28or_similar.29_not_equal_to_zero.3F
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!