imshow(filename)
imshow(img)
imshow(RGB)
imshow(img, [low high])
imshow(img, [])
imshow(img, map)
imshow(..., propertyName, propertyValue)
go = imshow(...)
| Parameter | Description |
|---|---|
| filename | row vector character: file name of the image to display. |
| img | grayscale image: matrix. |
| RGB | truecolor image: m-by-n-by-3 array. |
| [low high] | grayscale image display range. |
| map | colormap: c-by-3 matrix. |
| propertyName | a scalar string or row vector character (for compatibility). |
| propertyValue | a value (for compatibility). |
| Parameter | Description |
|---|---|
| go | a graphics object: image type. |
imshow(img) displays the image im.
f = figure();
filename = [tempdir, 'apollo_8_earthrise_1968_as08-14-2383.jpg'];
websave(filename, 'https://www.nasa.gov/wp-content/uploads/2025/05/3dmodels-casa-2025-astro.jpg');
h = imshow(filename);
| Version | Description |
|---|---|
| 1.0.0 | initial version |