Heat map of a 1999x1000 matrix of values, x and y positions given by separate 1999x1000 matrices?
Afficher commentaires plus anciens
I have three 1999x1000 matrices, one is x positions for some particles, one is y positions, and the third is the value I want to assign to a color value. This value is an angle between two movement vectors, between 0 and 2*pi. I need to set my colormap to wrap around, otherwise it won't make sense.
I should make clear, the the x position, y position, and angle all correspond to the same index in their respective matrices.
I've seen people do it with individual vectors, but haven't been able to figure out how to do it with matrices like this.
example:
x =
5 1 1 1 4
5 2 5 3 1
1 3 5 5 5
5 5 3 4 5
4 5 5 5 4
y =
4 1 4 2 3
2 2 2 4 4
4 1 5 4 4
1 1 1 1 4
4 5 3 3 2
z =
6 7 9 4 7
6 4 10 7 5
3 4 8 2 8
5 10 1 8 8
7 1 3 2 10
the value at (5,4) = 6, at (1,1) = 7, (1,4) = 9, and so forth.
Thanks!
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Color and Styling 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!