function simpleGUI
x = 1;
mainFig = figure('Visible','on',...
	'name','SimpleGui',...
	'Position',[210,170,660,440]);

PlotButton = uicontrol('Style','PushButton',...
	'Position',[200,43,80,40],...
	'String','Click',...
	'Callback',@func_Callback);
       
function func_Callback(source,eventdata)
    disp('button clicked');
    disp(x);
    x = x + 1;
end
end

