test.m
来自「很多matlab的源代码」· M 代码 · 共 23 行
M
23 行
figNumber=figure( ...
'Name','Phone Pad', ...
'position',[50,50,300,300]);
xLabelPos=0.10;
btnWid=0.20;
top=0.9;
for count=1:12,
btnPos=[xLabelPos+rem(count-1,3)*(btnWid/3) ...
top-floor((count-1)/3)*(btnWid/3) btnWid/3 btnWid/3];
if count<10,
btnStr=num2str(count);
else
s = '*0#';
btnStr = s(count-9);
end
uicontrol( ...
'Style','pushbutton', ...
'Units','normalized', ...
'Position',btnPos, ...
'String',btnStr, ...
'UserData',count, ...
'Callback','close');
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?