gcchg.m

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

M
24
字号
% Script : change the gain value of the gain envelope displayed in Gcdis_f 
%
%    gcchg.m is a call_function executed by "env_chg" on figure(Gcset_f).


  % 1. secify the neighborhood of the mouse pointer 
  figure(Gcdis_f);
  [xx,yy]=ginput(1);

  % 2. find the knob in the neighborhood of the mouse pointer (cross hair)
  [dum,knob_idx]=min( abs(xx-knob_xx) );
  xx=knob_xx(knob_idx);
  o_yy=knob_yy(knob_idx);

  % 3. plot the selected point
  hold on;
  plot(xx,o_yy,'bo')
  hold off;

  set(env_up,'Visible','on');
  set(env_down,'Visible','on');

  clear xx;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?