Program_2_6.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:0k
源码类别:
语音合成与识别
开发平台:
Matlab
- % Program_2_6
- % Illustration of Impulse Response Computation
- %
- clf;
- N = input('Input length = ');
- p = input('Type in the vector p = ');
- d = input('Type in the vector d = ');
- x = [1 zeros(1,N-1)];
- y = filter(p,d,x);
- k = 0:N-1;
- stem(k,y);
- xlabel('Time index n'); ylabel('Amplitude');
- title('Impulse Response');