plot vectors from a point to another point
12 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to plot a vector from a defined point(like (-2,-3)) to another point (like(2,7)) in matlab.what should I do? Thanks
0 Commenti
Risposta accettata
Matt Fig
il 22 Ott 2012
Modificato: Matt Fig
il 22 Ott 2012
cla
quiver(2,3,5,5,0) % Set scale to zero
axis tight
As I told you in your previous question, you need to do some math and transform from figure coords to axes coords to use the figure annotation arrow like you want. This will involve reading the documentation!
If you had read the documentation for QUIVER, you wouldn't have had to wait 2 days to get it right...
Più risposte (1)
Sachin Ganjare
il 22 Ott 2012
I think you can use 'quiver' command.
Refer below link:
Hope it helps!!!
3 Commenti
Vedere anche
Categorie
Scopri di più su Vector Fields in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!