From: elegant charm on
Hi
i want to find channel fading gain and then CINR for a carrier frequency where total data sub carrier are 720
sn_r=11db
ch=rayleighchan;
sb_carrier=360000000;%360mHz

t= [0:.01:1];
s_1 = sin(2*pi*sb_carrier*t)

sig=(filter(ch,s_1))

h=abs(fad_sig)



n0=((abs(awgn(h,sn_r,'measured'))))

cnr=10*log10(((720*h)/(10000000*n0)))


i dont know but my CNR value is not coming correct...kindly tell me whats wrong with the code
regards