SOURCE CODE OF FSK SIGNAL PLOT ....IN DSP NETWORK

by barkkathulla 2012-09-21 17:15:24

kf=50; %modulation index
fs=1/ts; %sampling frequency
t=(0:ts:t0); %time vector
df=0.25; %required fequency deviation
m=[ones(1,t0/(3*ts)),-1*ones(1,t0/(3*ts)),zeros(1,t0/(3*ts)+1)]; %message
signal
int_m(1)=0;
for i=1:length(t)-1%integral of m
int_m(i+1)=int_m(i)+m(i)*ts;
end
[M,m,df1]=fftseq(m,ts,df); %Fourier transform
M=M/fs; %scaling
f=(0:df1:df1*(length(m)-1))-fs/2; %frequency vector
u=cos(2*pi*fc*t+2*pi*kf*int_m); %modulated fsk signal
[U,u,df1]=fftseq(u,ts,df); %Fourier transform
U=U/fs; %scaling
893
like
0
dislike
0
mail
flag

You must LOGIN to add comments