%% Display Image of 3-D Array of True Colors
% Create C as a 3-D array of true colors. Use only red colors by setting the last two pages of the array to zeros.

C = zeros(3,3,3);
C(:,:,1) = [.1 .2 .3; .4 .5 .6; .7 .8 .9]

%
% Display an image of the data in C.

image(C)

% Copyright 2015 The MathWorks, Inc.