www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/ReadAndDisplaySampleImageExample.m

    %% Read and Display JPEG Image File

% Copyright 2015 The MathWorks, Inc.


%%
% Read a JPEG image file.

C = imread('ngc6543a.jpg');

%%
% |imread| returns a 650-by-600-by-3 array, |C|.

%%
% Display the image. 

image(C)