马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
hf=figure('color',[0,1,1],'position',[100 200 400 200],...'name','shuzhizhaunghuan','numberTitle','off','menubar','none');<BR> uicontrol(hf,'style','Text','Units','normalized',...'position',[0.05 0.8 0.45 0.1],'horizontal','center',...'string','shurukuang','back',[0 1 1]);<BR> uicontrol(hf,'style','Text','Units','normalized',...'position',[0.5 0.8 0.45 0.1],'horizontal','center',...'string','shucukuang','back',[0 1 1]);<BR> uicontrol(hf,'style','Frame','position',[0.04 0.33 0.45 0.45],...'Units','normalized','back',[1 1 0]);<BR> uicontrol(hf,'style','Text','position',[0.05 0.6 0.25 0.1],... 'Units','normalized','horizontal','center',...'string','shijinzhis','back',[1 1 0]);<BR> uicontrol(hf,'style','Text','position',[0.05 0.4 0.25 0.1],... 'Units','normalized','horizontal','center',...'string','2jinzhis','back',[1 1 0]);<BR> he1=uicontrol(hf,'style','Edit','position',[0.25,0.6,0.2,0.1],... 'Units','normalized','back',[0 1 0]);<BR> he2=uicontrol(hf,'style','Edit','position',[0.25,0.4,0.2,0.1],... 'Units','normalized','back',[0 1 0]);<BR> uicontrol(hf,'style','Frame','position',[0.52 033 0.45 0.45],...'Units','normalized','back',[1 1 0]);<BR> ht=uicontrol(hf,'style','Text','position',[0.6 0.5 0.3 0.1],...'horizontal','center','Units','normalized','back',[0 1 0]);<BR> COMM=['n=str2num(get(he1,"sting"));','b=st2num(get(he2,"string"));'...'dec=trdec(n,b);'set(ht,"string",dec);'];<BR> uicontrol(hf,'style','push','position',[0.18 0.1 0.2 0.12],...'string','zhuanhuan','Units','normalized','call',COMM); <BR> uicontrol(hf,'style','push','position',[0.65 0.1 0.2 0.12],...'string','tuichu','Units','normalized','call','close(hf)'); |