Try displaying your images with 'InitialMagnification'
set to 'fit'
:
>> figure(1); imshow( A, 'InitialMagnification', 'fit' );
If this does not work, you might try set 'Position'
of figure after showing the image.
Alternatively, you might want to consider using imagesc
with axis image
to display the images.