yamid
Newbie level 5
hello all,
i wrote this code:
N=10000; %number of data bits
data=randn(1,N)>=0; %Generate uniformly distributed random data
Fs=20*10.7e+6; %Sampling frequency
Rb=Fs*(1/10);
Tb=1/Rb;
Fc=10.7e+6;
snrdb=10; % Eb/N0 range in dB for simulation
time_bpsk=01/Fs):Tb*(length(data))-(1/Fs);
carrier=cos(2*pi*Fc*time_bpsk);
figure; plot(abs(fft(carrier)));
can someone explain me why the harmonies amplitude is so high? (5*10^4!!!!)
(i know that by theory the harmonies amplitude should be 1/2 if you insert signal with unot amplitude.)
i wrote this code:
N=10000; %number of data bits
data=randn(1,N)>=0; %Generate uniformly distributed random data
Fs=20*10.7e+6; %Sampling frequency
Rb=Fs*(1/10);
Tb=1/Rb;
Fc=10.7e+6;
snrdb=10; % Eb/N0 range in dB for simulation
time_bpsk=01/Fs):Tb*(length(data))-(1/Fs);
carrier=cos(2*pi*Fc*time_bpsk);
figure; plot(abs(fft(carrier)));
can someone explain me why the harmonies amplitude is so high? (5*10^4!!!!)
(i know that by theory the harmonies amplitude should be 1/2 if you insert signal with unot amplitude.)