?? 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 + -