Asked by Herbert
on 19 Jul 2013

Hello, I have a Matrix of dimensions (2xN) which consists of 2 dimensional Cartesian coordinates and I would like to create a heat map of this. Do you know any way to do this?

Thanks in advance!

*No products are associated with this question.*

Answer by the cyclist
on 19 Jul 2013

Without more detail, I would just point you to the image() command. Is that helpful?

Opportunities for recent engineering grads.

## 2 Comments

## Chad Gilbert (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/82556#comment_160631

What do you want a heat-map of? A third variable? The densiy of the scatter points?

## Herbert (view profile)

Direct link to this comment:http://www.mathworks.com/matlabcentral/answers/82556#comment_160666

With heat map I mean a plot where e.g. red color indicates that a lot of points from the matrix are in a certain neighbourhood and blue would mean that all the other coordinates are far away.