Arrow of a vector ( r, theta) from a point (x,y).
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bipul Biswas
am 9 Sep. 2021
Kommentiert: Star Strider
am 9 Sep. 2021
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.
Akzeptierte Antwort
Star Strider
am 9 Sep. 2021
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.
.
2 Kommentare
Weitere Antworten (1)
the cyclist
am 9 Sep. 2021
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 Kommentare
Siehe auch
Kategorien
Mehr zu Vector Fields finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!