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

    %% Customize Number of Images in Montage
% 
%%
% Load images.

% Copyright 2015 The MathWorks, Inc.

load mri
%%
% Display as montage.
montage(D,map)
%%
% Create new montage containing only the first nine images.
figure
montage(D, map, 'Indices', 1:9);