i can make LFM signal with this function look my program , but when noise increase to modulated signal, the demodulator out put isn't desirable just for very high SNR such as 100dB!!!???
close allclear allclc%**************** linkbudget
fd=1000; %doppler freq
fs=1e6; %frequency sampling
fc=1e3;T=1e-2; % one period
B=2e4; %bandwidth
SNR_db=10; f_dev=1;%**************
snr=10^(SNR_db/10);t=-T/4:1/fs:T/4;x=B/2*tripuls(t,T/2);figureplot(t+T/4,x)x2=fd+x;y=fmmod(x2,fc,fs,f_dev);pn=sum(y.^2)/snr;y2=y+sqrt(pn).*randn(1,length(t));z=fmdemod(y2,fc,fs,f_dev);hold onplot(t+T/4,z,'g')figureplot(t,y2);
to see the true output change line 11 to SNR_db=100
Best Answer