excitation_save_main.m

来自「这是一个用于语音信号处理的工具箱」· M 代码 · 共 52 行

M
52
字号
%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 + =
减小字号Ctrl + -
显示快捷键?