Arrow of a vector ( r, theta) from a point (x,y).
41 次查看(过去 30 天)
显示 更早的评论
Hello,
I need to show a arrow of a vector (r, theta) form a point (x,y). Is there any function to do that?
Thanks for help.
采纳的回答
Star Strider
2021-9-9
x = rand
y = rand
r = rand
theta = 30; % Angle In Degrees
figure
quiver(x, y, r*cos(deg2rad(theta)), r*sin(deg2rad(theta)))
axis([0 2 0 2])
grid
Experiment to get different results.
.
更多回答(1 个)
the cyclist
2021-9-9
You can make an arrow on a plot using the annotation function, or you may want to use a quiver plot if you want the arrow to come from the data itself.
0 个评论
另请参阅
类别
在 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!