Vector magnitude with colors
Afficher commentaires plus anciens
I want to print velocity vectors on Matlab. I use function "quiver".

It satisfies to draw velocity vectors but I can t give color to the vectors.
I try to give color to velocity vectors depend on magnitude of vectors like this image

Which code I need to color velocity vectors with colorbar like above image? Thank you.
This is my codes:
xyz=dlmread('vector3dn.txt');
X=xyz(:,1);
Y=xyz(:,2);
Z=xyz(:,3);
U=xyz(:,4);
V=xyz(:,5);
W=xyz(:,6);
quiver3(X,Y,Z,U,V,W)
axis equal
Note : I uploaded my source file as an attachment.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Vector Fields dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

