MATLAB: How to plot multiple row vectors of values between 0 and 100 in the same 2D space, as a heat map.

2d plotheat map

I am going to have a structure of data that I'm generating. It outputs a row vector of RMSD's between two sets of positions, for all remaining time steps left in a simulation, and it does this comparison starting at each time step(The second set of positions is generated from a vector field and starting positions, and so is dependent on what time step I start on). It will look about like this:
0.1 0.2 0.3 0.4 0.5 … 56.7
0 0.1 0.3 0.5 0.7 … 54.2
0 0 0.1 0.15 0.32 … 55.4
.
.
.
0 0 0 0 0 … 0.1
I don't have the complete data set yet, it's being generated right now.
My question is how do I make a 2d heat map type plot where each row is the simulation starting time step, and each column is the step at which comparison occurred?

Best Answer

doc imagesc
Related Question