📄 imbara.m
字号:
%imbarA Deep bar effects in IM
inf(1)={' DEEP BAR EFECTS '};
figure('units','normalized','Position',[.01 .635 .34 .22],'Name','DEEP BAR EFFECTS',...
'numbertitle','off','ToolBar','none');
uicontrol('Units','normalized', ...
'BackgroundColor',[0.76 0.76 0.76], ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 0.6], ...
'HorizontalAlignment','left', ...
'Position',[0.3 0.87 0.5 0.10], ...
'String',inf, ...
'Style','text');
uicontrol( 'Units','normalized', ...
'BackgroundColor',[0.76 0.76 0.76], ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 0.6], ...
'HorizontalAlignment','left', ...
'Position',[0.05 0.70 .42 0.1], ...
'String','Frequency (Hz) =', ...
'Style','text');
hf = uicontrol( 'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[0.46 .70 .25 .1], ...
'String','60', ...
'Style','edit', ...
'TooltipString','f');
uicontrol( 'Units','normalized', ...
'BackgroundColor',[0.76 0.76 0.76], ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 0.6], ...
'HorizontalAlignment','left', ...
'Position',[0.05 0.60 .42 0.1], ...
'String','Depth of bar (mm) =', ...
'Style','text');
hd = uicontrol( 'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[0.46 .60 .25 .1], ...
'String','25.4', ...
'Style','edit', ...
'TooltipString','depth');
uicontrol( 'Units','normalized', ...
'BackgroundColor',[0.76 0.76 0.76], ...
'FontWeight','bold', ...
'ForegroundColor',[0 0 0.6], ...
'HorizontalAlignment','left', ...
'Position',[0.05 0.45 .42 0.15], ...
'String','Per-unit resistivity (relative to Cu) =', ...
'Style','text');
hrho = uicontrol( 'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Position',[0.46 .45 .25 .1], ...
'String','1', ...
'Style','edit', ...
'TooltipString','rho');
uicontrol( 'Units','normalized', ...
'Style','pushbutton',...
'Callback','imbarB', ...
'FontSize',10, ...
'ForegroundColor','k', ...
'FontWeight','bold', ...
'Position',[0.5 0.26 0.15 0.12], ...
'String','Run', ...
'TooltipString','run');
uicontrol( 'Units','normalized', ...
'Style','pushbutton',...
'Callback','close ,clc', ...
'FontSize',10, ...
'FontWeight','bold', ...
'ForegroundColor','k', ...
'Position',[0.5 0.1 0.15 0.12], ...
'String','Close', ...
'TooltipString','close');
%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -