c3_upsampex.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:0k
源码类别:
语音合成与识别
开发平台:
Matlab
- M=6;%采样速率
- h=c3_lininterp(M);%imp response of linear interpolator
- t=0:10;% time vector
- tu=0:60;%upsampled time vector
- x=sin(2*pi*t/10);%orginal samples
- xu=c3_upsamp(x,M);%upsampled sequence
- subplot(3,1,1)
- stem(t,x,'k.')
- ylabel('x')
- subplot(3,1,2)
- stem(tu,xu,'k.')
- ylabel('xu')
- xi=conv(h,xu);
- subplot(3,1,3)
- stem(xi,'k.')
- ylabel('xi')