function [] = gui_pop()
S.fh = figure('units','pixels',...
'position',[300 300 300 100],...
'menubar','none',...
'name','gui_pop',...
'numbertitle','off',...
'resize','off');
S.pb = uicontrol('style','push',...
'unit','pix',...
'position',[10 15 280 20],...
'fontsize',12,...
'fontweight','bold',...
'string','START',...
'callback',@pb_call);
S.pp = uicontrol('style','pop',...
'unit','pix',...
'position',[10 60 280 20],...
'fontsize',12,...
'fontweight','bold',...
'string',{'1';'2';'3';'4'},...
'value',1);
guidata(S.fh,S)
movegui('center')
function [] = pb_call(varargin)
S = guidata(gcbf);
N = get(S.pp,{'string','value'});
N = str2double(N{1}(N{2}));
home
2^N
0 件のコメント
サインイン to comment.