%% Simple GUI close all % ------------------------------------------------------------------------- % CREATE MAIN WINDOW % ------------------------------------------------------------------------- set(0,'DefaultUIcontrolFontname','Arial'); fWidth = 200; fHeight = 200; screen_s = get(0,'ScreenSize'); % detect current screen size pos = [screen_s(3)/2 - fWidth/2,screen_s(4)/2 - fHeight/2,fWidth,fHeight]; % Make a large figure. figH = figure('Position',pos,'Resize','off','NumberTitle','off',... 'Tag','GOSET GUI'); handles = guihandles(figH); handles.figH = figH; % ------------------------------------------------------------------------- % LOAD LOGO % ------------------------------------------------------------------------- load gosetlogo.mat; dsrdW = 188; % desired width dsrdH = 80; % desired height banner = axes('Position',[0 0.6 0.94 0.4]); image(gosetlogo); % display the logo image set(banner,'Visible','off'); % Remove the axis % ------------------------------------------------------------------------- % Start button % ------------------------------------------------------------------------- handles.startbtn=uicontrol('Style','pushbutton',... 'Position',[60 12 75 60],... 'CData',startbutton);