Quiver direction will not reset with the axes.

5 ビュー (過去 30 日間)
Jared
Jared 2014 年 12 月 7 日
回答済み: Jared 2014 年 12 月 7 日
When plotting a quiver arrow to represent vectors in my gui, the arrows don't point in correct direction after doing a second calculation. I've included a cla reset for the handle in the calculate callback for the button. The circles I have plotting move correctly, and so do the back ends of the quiver, however the front end still points towards the original point in stead of changing direction.
cla(handles.plot,'reset')
quiver(x1,y1,ax1,ay1,'MaxHeadSize',.5)
quiver(x2,y2,ax2,ay2,'MaxHeadSize',.5)

採用された回答

Jared
Jared 2014 年 12 月 7 日
It appears as though my parametrization was not working to find the unit vector of directions since I was having issues earlier with my functions creating arrays instead of just scalar numeric values. For anyone else having this problem, make sure your inputs that are being calculated are correct.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by