This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Adjust display size of image


truesize(fig,[mrows ncols])


truesize(fig,[mrows ncols]) adjusts the display size of an image. fig is a figure containing a single image or a single image with a colorbar. [mrows ncols] is a 1-by-2 vector that specifies the requested screen area (in pixels) that the image should occupy.

truesize(fig) uses the image height and width for [mrows ncols]. This results in the display having one screen pixel for each image pixel.

If you do not specify a figure, truesize uses the current figure.


Fit image to figure window.


Resize image and figure to show image at its 80-by-80 pixel size.


Introduced before R2006a

Was this topic helpful?