How to rescale labels in MATLAB?

I have a matrix A that I am drawing using imagesc (A). The matrix is ​​a 512 X 512 matrix, but I need the axes to be labeled 0 to 4000 instead of 0 to 512. I can't find where I can change this, instead of just going from where the points are in the graph !

+2


source to share


2 answers


Does this accomplish what you want?



imagesc([0 4000],[0 4000],A);

      

+2


source


I think you should be using XTick, YTick Property.



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

0


source







All Articles