I am displaying an image:
% Load some image:
data = imread(srcPath);
% display the image:
figure;
imshow(data);
axis image;
Is there anyway to get some example values near the axis?
Ignore the messagebox:

Basically this is the output using
imagesc(data);
But I wouldn’t use imagesc just to display axis like that
What you want is done through the attributes
xtickfor horizontal axis andytickfor vertical axis. You have to use theset(gca, ...)syntax to do it. There are some good examples in the documentation.