⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vtplt.m

📁 这是一个用于语音信号处理的工具箱
💻 M
字号:
% Function : plot the voicetype on figure(Vchek_f) and figure(Vcontour_f) 
%    It has the following features:
%     (1) shifts the display to the left by npts when sf_flag=1; The reverse if sf_flag=-1
%     (2) undo the correction, redraw the plot

figure(Vchek_f);
plot_flag=1;
   %--------------%
   % SHIFT EFFECT %
   %--------------%

if exist('sf_flag')
   plot_flag=0;
   if sf_flag==1  % shift to left
       left=max(1,left-5*m_len);
       right=max(7*m_len,right-5*m_len);
   elseif sf_flag==-1
       left=min(lens-7*m_len,left+5*m_len);
       right=min(lens,right+5*m_len);
   end;
   clear sf_flag;
end

   %------------------------%
   % plot the voicetype     %
   %------------------------%

idx=round(left/m_len)+1:round(right/m_len);

plot(left:right,signal(left:right),'b',left+m_len/2:m_len:right,8000*vctyp0(idx));
axis([left right -10000 10000])
for kf=idx
    if vctyp0(kf)
        text(m_len*kf-m_len/2,9000,'V');
    else
        text(m_len*kf-m_len/2,9000,'U');
    end
end
grid;

  %----------------------------------%
  % plot the voicetype for reference %
  %----------------------------------%

if plot_flag==1
   figure(Vcontour_f);
   plot(1:lens,signal,'b',1+m_len/2:m_len:lens,10000*vctyp0,'m--');
   title('Voicetype classification along the speech signal (magenta line: voicetype)');

end

⌨️ 快捷键说明

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