P3_11.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- % Program P3_11 % Relations between the DFTs of the Periodic Even % and Odd Parts of a Real Sequence x = [1 2 4 2 6 32 6 4 2 zeros(1,247)]; x1 = [x(1) x(256:-1:2)]; xe = 0.5 *(x + x1); XF = fft(x); XEF = fft(xe); clf; k = 0:255; subplot(2,2,1); plot(k/128,real(XF)); grid; ylabel('Amplitude'); title('Re(DFT{x[n]})'); subplot(2,2,2); plot(k/128,imag(XF)); grid; ylabel('Amplitude'); title('Im(DFT{x[n]})'); subplot(2,2,3); plot(k/128,real(XEF)); grid; xlabel('Time index n');ylabel('Amplitude'); title('Re(DFT{x_{e}[n]})'); subplot(2,2,4); plot(k/128,imag(XEF)); grid; xlabel('Time index n');ylabel('Amplitude'); title('Im(DFT{x_{e}[n]})');