www.pudn.com > dspproject.rar > SNR_singlech.m, change:2013-10-12,size:257b


function snr=SNR_singlech(I,In) 
% Ⱥ 
% I :original signal 
% In:noisy signal(ie. original signal + noise signal) 
snr=0; 
Ps=sum(sum((I-mean(mean(I))).^2));%signal power 
Pn=sum(sum((I-In).^2));           %noise power 
snr=10*log10(Ps/Pn);