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

📄 shft.m

📁 这是一个用于语音信号处理的工具箱
💻 M
字号:
% Function : shift the display sequence by 'npts' points 
%    shifts the display to the left by npts when sf_flag=1; 
%    The shift is the reverse if sf_flag=-1.
%
%    shft.m is a call_function executed by "shift_left" and "shift_right" 
%    
%    

% get the shift points

npts=str2num(get(shift_pts,'String'));

LENS2=RIGHT-LEFT;

% set the region, [left right]

if sf_flag == 1 % shift to left
        LEFT=max(LEFT-npts,1);
        RIGHT=LEFT+LENS2;
elseif sf_flag == -1 % shift to right
        RIGHT=min(RIGHT+npts,LENS);
        LEFT=RIGHT-LENS2;
end;

axes(ax2);
plot((LEFT:RIGHT),signal2(LEFT:RIGHT));
title('Speech signal - zoom');
axes(ax3);
plot((LEFT:RIGHT),signal3(LEFT:RIGHT));
title('EGG signal - zoom');
axes(ax4);
plot((LEFT:RIGHT),signal4(LEFT:RIGHT));
title('DEGG signal - zoom');




⌨️ 快捷键说明

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