📄 set_picture.m
字号:
function set_picture
global rotate_angle rotate_repeat rotate_zhen
global htext_input_angle htext_input_zhen htext_input_repeat
figure(18),
set(gcf,'menubar','none')
set(gcf,'unit','normalized','position',[0.52,0.51,0.34,0.22]);
set(gcf,'defaultuicontrolunits','normalized');
set(gcf,'defaultuicontrolfontsize',12);
set(gcf,'defaultuicontrolfontname','隶书');
set(gcf,'defaultuicontrolhorizontal','left');
name='旋转观察参数设置';
set(gcf,'name',name,'numbertitle','off');
str_angle='旋转角度/次=';str_zhen='桢/秒=';str_repeat='重复次数=';
htext_input_angle=uicontrol(gcf,'style','text',...
'position',[0.10,0.75,0.30,0.10],...
'string',[str_angle,sprintf('%1.4g\',0)]);
hedit_angle=uicontrol(gcf,'style','edit',...
'position',[0.40,0.75,0.25,0.13],...
'callback','set_angle=str2num(get(gcbo,''string''));');
htext_input_zhen=uicontrol(gcf,'style','text',...
'position',[0.10,0.55,0.25,0.10],...
'string',[str_zhen,sprintf('%1.4g\',0)]);
hedit_zhen=uicontrol(gcf,'style','edit',...
'position',[0.40,0.55,0.25,0.13],...
'callback','set_zhen=str2num(get(gcbo,''string''));');
htext_input_repeat=uicontrol(gcf,'style','text',...
'position',[0.10,0.35,0.25,0.10],...
'string',[str_repeat,sprintf('%1.4g\',0)]);
hedit_repeat=uicontrol(gcf,'style','edit',...
'position',[0.40,0.35,0.25,0.13],...
'callback','set_repeat=str2num(get(gcbo,''string''));');
htext_shuoming=uicontrol(gcf,'style','text',...
'position',[0.10,0.15,0.4,0.10],...
'string','以上数值为正整数');
push=uicontrol(gcf,'style','push',...
'unit','normalized','position',[0.79,0.26,0.15,0.13],...
'string','OK','callback',[...
'rotate_angle=set_angle;rotate_zhen=set_zhen;rotate_repeat=set_repeat;',...
'set(htext_input_angle,''string'',[str_angle,sprintf(''%1.4g\'',rotate_angle)]),',...
'set(htext_input_zhen,''string'',[str_zhen,sprintf(''%1.4g\'',rotate_zhen)]),',...
'set(htext_input_repeat,''string'',[str_repeat,sprintf(''%1.4g\'',rotate_repeat)]),',...
]);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -