%% Access Data in Structure Array
%% Load image

S = load('flujet.mat')

%
%% Display image

image(S.X)
colormap(S.map)

%
%% zoom image

centerLeft = S.X(150:250,1:50);
image(centerLeft)

%
%% Load Second Image

S(2) = load('cape.mat')

%
%% Display Second Image

image(S(2).X)
colormap(S(2).map)

%
%% zoom second image

capeSection = S(2).X(200:300,150:250);
image(capeSection)

% Copyright 2012 The MathWorks, Inc.