quiver arrows in color representing another variable?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi
Is it possible to incorporate a second variable into the quiver code? Could the color arrows in quiver be used to represent another variable, such as temperature or humidity ? This would work similarly to the scatter code, where the arrows indicate both the direction and magnitude of the wind but in color another variable?.
Thanks
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1461772/image.png)
3 commentaires
Dyuman Joshi
le 22 Août 2023
You could try getting a similar plot via feather() instead of quiver().
Réponses (1)
Walter Roberson
le 21 Août 2023
Not by using quiver(). quiver() creates a quivergroup(), which internally contains two LineStrip objects. The LineStrip objects have a CData property that appears to only accept a single color.
0 commentaires
Voir également
Catégories
En savoir plus sur Vector Fields dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!