📄 excitation_save_main.m
字号:
%Save the excitation
%Create a window to do this
PV = [195 180 193 178];
s2 = 'Save new Excitation';
% Open save window
while exist('src_save_fig')==1
try1 = 'get(src_save_fig,''position'');';
eval(try1,catch2);
if check ==0
clear src_save_fig;
check = 1;
break;
end
s1 = get(src_save_fig,'Name');
if ~strcmp(s1,s2)
clear src_save_fig;
break;
end
figure(src_save_fig);
break;
end;
if exist('src_save_fig')~=1;
src_save_fig= figure('Position',PV,...
'Resize','on',...
'Numbertitle','off',...
'Color','white',...
'Name',s2);
uicontrol('Style','Text',...
'Units','Normalized',...
'Position',[0.02 0.8 0.96 0.15],...
'BackGroundColor','white',...
'ForeGroundColor','blue',...
'HorizontalAlignment','Center',...
'String','Save Excitation in a file');
src_save_popup = uicontrol('Style','Popup',...
'Units','Normalized',...
'Position',[0.02 0.5 0.96 .15],...
'String','Save as mat file | Save as Ascii File | Save Coefficients(mat)',...
'Callback','save_excitation');
uicontrol('Style','Pushbutton',...
'Units','Normalized',...
'Position',[0.02 0.2 0.96 0.15],...
'String','Done/Cancel',...
'Callback','save_excitation_cancel');
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -