% Script/Function Filename:
%     makeMatrixGUI.m
% Purpose:
%     Enter the purpose of the function/file here
%     
% Record of modifications:
%     Programmer(s): {Your Name}
%     Date Due: YYYY-MM-DD
%     Date Submitted: YYYY-MM-DD
%     References: ????
%     Help Received: ????
%     
% Variables Used:
%     Enter the other variables that you use here
rng shuffle;
close all;

ourMatrix = makeMatrix();
numRows = size( ourMatrix , 1 );
numCols = size( ourMatrix , 2 );
numSlices = size( ourMatrix , 3 );

xs = linspace( 0 , 1 , numCols + 1 );
xs = xs( 1 : numCols );
ys = linspace( 0 , 1 , numRows + 1 );
ys = fliplr( ys( 1 : numRows ) );

for slice = 1 : numSlices
    figure;
    set( gcf , 'NumberTitle' , 'off' , 'Name' , sprintf( 'Slice %d' , slice ) );
    for r = 1 : numRows
        for c = 1 : numCols
            uicontrol( 'style' , 'text' , 'units' , 'normalized' , ...
            'position' , [ xs( c ) ys( r ) 1 / numCols 1 / numRows ] , ...
            'string' , num2str( ourMatrix( r , c , slice ) ) , 'fontunits' , ...
            'normalized' , 'fontname' , 'fixedwidth' , 'fontsize' , 0.8 );
        end
    end
end