How to plot a vector field with coloured arrows?
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohit Kumar
am 12 Sep. 2020
Kommentiert: Mohit Kumar
am 15 Sep. 2020
I'm trying to create a vector field where the colour of the vector represents its magnitude like the one shown in the picture. Any ideas on how to do this?
I am currently using an inefficient method plotting each vector separately using two for loops.
Thanks,
Mohit
2 Kommentare
Adam Danz
am 12 Sep. 2020
You forgot to attach the image.
quiver() plots a vector view with arrows but the length of the arrows represnts the magnitude. Is your goal to represent the magnitude by arrow length and color or is your goal to use the a uniform arrow length and varied color?
Akzeptierte Antwort
Weitere Antworten (0)
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!