tags:

views:

274

answers:

2

Hey,

I have a matrix A which I am plotting using imagesc(A). The matrix is a 512 X 512 matrix, but I need the axes to be labeled from 0 to 4000 instead of 0 to 512. I can't seem to find where I can change this instead of just changing from where to where the points are plotted!

+2  A: 

Does this accomplish what you want?:

imagesc([0 4000],[0 4000],A);
gnovice
It should (that was what I was typing up as well).
Jonas
A: 

I think you should use the XTick, YTick Property.

http://www.mathworks.com/support/solutions/en/data/1-15HXQ/index.html

Drazick
I think that would be a bad idea, since setting ticks doesn't go well with zooming.
Jonas

related questions