Confusion in the spectrum of FSK by using fskmod module

Status
Not open for further replies.

waseem khan

Newbie level 1
Joined
Jul 24, 2012
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,289
I want to do a comparison of power spectral density of BFSK,4FSK and 8FSK by using matlab baseband module "fskmod".Following is the code:

M = 2; freqsep = 32; nsamp = 4; Fs = 64;
x = randint(1000,1,M); % Random signal
y = fskmod(x,M,freqsep,nsamp,Fs); % Modulate.
ly = length;
% Create an FFT plot.
freq = [-Fs/2 : Fs/ly : Fs/2 - Fs/ly];
Syy = 10*log10(fftshift(abs(fft)));
plot(freq,Syy)

With this configuration, I get a very good spectrum but when I change nsamp to 8 or any other value,multiple lobes startr to appear between two frequencies.
The confusion is in the understanding of the relation of nsamp and frequency separation. Could any one solve this confusion???

Regards,
Waseem Khan
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…