c3_sna.m
资源名称:speech.rar [点击查看]
上传用户:ay_070428
上传日期:2014-12-04
资源大小:11427k
文件大小:1k
源码类别:
语音合成与识别
开发平台:
Matlab
- k=50;%samples per lobe
- nsamp=50000;%total frequency samples
- snrdb=zeros(1,17);%initialize memory
- x=4:20;%vector for plotting
- for m=4:20%iterate samples per symbol
- signal=0;noise=0;%initialize sum values
- f_fold=k*m/2;
- for j=1:f_fold
- term=(sin(pi*j/k)/(pi*j/k))^2;
- signal=signal+term;
- end
- for j=(f_fold+1):nsamp
- term=(sin(pi*j/k)/(pi*j/k))^2;
- noise=noise+term;
- end
- snrdb(m-3)=10*log10(signal/noise);
- end
- plot(x,snrdb)
- xlabel('Samples per symbol')
- ylabel('Signal-to-aliasing noise ratio')%混淆噪声??