function MTB_Week11_GUI1(inputFreq)

Monitor = get(0,'ScreenSize'); 
x_size = 400;
y_size = 250;
figure('units','pixels','Name','Pøíklad1','Position',...
    [Monitor(3)/2-x_size/2 Monitor(4)/2-y_size/2 x_size y_size],...
    'Tag','fig_Priklad1','Color',[.8 .8 .8]);
uicontrol('Units','Normalized','Style','Push','String',...
    'Konec','Callback',@(scr,event)endFunction,'ForegroundColor',...
    [.7 .8 .8],'BackgroundColor',[.1 .4 1],...
    'Fontsize',9,'Position',[.1 .2 .15 .1]);
uicontrol('Units','Normalized','Style','Push','String',...
    'Stiskni','Callback',@pressButton,'ForegroundColor',...
    'white','BackgroundColor',[.7 .2 0],'Fontweight','bold',...
    'Fontsize',11,'Position',[.1 .65 .15 .1]);
osy = axes('units','Normalized',...
    'Position',[0.35 0.1 0.625 0.85],...
    'Color',[.98 .98 .98],...
    'Box','on');
if nargin == 0
    disp('Nejsou zadaná vstupní data!');
    return
else
    if ~isempty(inputFreq) && isnumeric(inputFreq)
        disp('Probìhne vykreslení vstupních dat.');
        plot(osy,inputFreq);
    else
        disp('Vstupní data nemají platný formát!');
    end
end
end

function pressButton(scr,event)
disp(scr);
disp(event);
set(scr,'String','Done','Fontsize',9,'BackgroundColor',[.2 .7 0]);
end

function endFunction
    closereq;
end
