% Script/Function Filename:uicontrol
%     smallestOfThreeGUI.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 variables that you use here

numbers = randi( 19 , 1 , 3 ) - 10;
spaces = zeros( 1 , 3 );
x = [ 0 1 / 3 2 / 3 ];
for i = 1 : 3
    spaces( i ) = uicontrol( 'style' , 'text' , 'units' , 'normalized' , ...
        'fontunits' , 'normalized' , 'fontname', 'fixedwidth' , ...
        'position' , [ x( i ) 2 / 3 1 / 3 1 / 3 ] , 'string' , ...
        num2str( numbers( i ) ) , 'fontsize' , 1 );
end

smallestNum = uicontrol( 'style' , 'text' , 'units' , 'normalized' , ...
        'fontunits' , 'normalized' , 'fontname', 'fixedwidth' , ...
        'position' , [ 2 / 3 0 1 / 3 1 / 3 ] , 'string' , ...
        num2str( smallest( numbers( 1 ) , numbers( 2 ) , numbers( 3 ) ) ) , ...
        'fontsize' , 1 );