Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Confusion in the spectrum of FSK by using fskmod module

Status
Not open for further replies.

waseem khan

Newbie level 1
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(y);
% Create an FFT plot.
freq = [-Fs/2 : Fs/ly : Fs/2 - Fs/ly];
Syy = 10*log10(fftshift(abs(fft(y))));
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 untitled.jpg
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top