📄 mian3.m
字号:
clear
close all
screen=get(0,'ScreenSize');
W=screen(3); H=screen(4);
figure('Position',[0.2*H,0.2*H,0.6*W,0.4*H],...
'Name','模拟滤波器的设计演示系统','NumberTitle','off','MenuBar','none');
hplot=uimenu(gcf,'Label','滤波器转换');
h1=uimenu(hplot,'Label','低通转高通');
set(h1,'CallBack',['haxes1=axes(''position'',[0.20,0.10,0.65,0.38]);','haxes2=axes(''position'',[0.20,0.55,0.65,0.38]);',...
'gaotong(haxes1,haxes2);','set(hgon,''Enable'',''on'');','set(hgoff,''Enable'',''on'');']);
h2=uimenu(hplot,'Label','低通转带通');
set(h2,'CallBack',['haxes1=axes(''position'',[0.20,0.10,0.65,0.40]);','haxes2=axes(''position'',[0.20,0.55,0.65,0.40]);',...
'daitong(haxes1,haxes2);','set(hgon,''Enable'',''on'');','set(hgoff,''Enable'',''on'');']);
h3=uimenu(hplot,'Label','低通转带阻');
set(h3,'CallBack',['haxes1=axes(''position'',[0.20,0.10,0.65,0.40]);','haxes2=axes(''position'',[0.20,0.55,0.65,0.40]);',...
'daizu(haxes1,haxes2);','set(hgon,''Enable'',''on'');','set(hgoff,''Enable'',''on'');' ]);
%定义OPTION菜单项
hoption=uimenu(gcf,'Label','选项');
hgon=uimenu(hoption,'Label','&Grig on','CallBack','grid on','Enable','off');
hgoff=uimenu(hoption,'Label','&Grig off','CallBack','grid off','Enable','off');
hfigcor=uimenu(hoption,'Label','&Figure Color','Separator','on');
uimenu(hfigcor,'Label','&Red','Accelerator','r','CallBack','set(gcf,''Color'',''r'');');
uimenu(hfigcor,'Label','&Blue','Accelerator','b','CallBack','set(gcf,''Color'',''b'');');
uimenu(hfigcor,'Label','&Yellow','CallBack','set(gcf,''Color'',''y'');');
uimenu(hfigcor,'Label','&White','CallBack','set(gcf,''Color'',''w'');');
%定义QUIT菜单项
uimenu(gcf,'Label','退出','CallBack','close(gcf)');
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -