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

    %% Import and Display an Image  
% Import and display the sample image, |ngc6543a.jpg|.   

% Copyright 2015 The MathWorks, Inc.


%%  
A = importdata('ngc6543a.jpg');
image(A) 

%%
% The output, |A|, is class |uint8| because the helper function, |imread|,
% returns empty results for |colormap| and |alpha|.