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.

number of sub carriers in OFDM

Status
Not open for further replies.

venkateshkumar

Newbie level 6
Joined
Oct 14, 2006
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,409
HOW TO GENERATE SUBCARRIERS in ofdm ?
i am using matlab 6.5 ver
 

hi

this is the code:

Code:
Nc=1076;                  %Number of subcarriers
NFFT=1024 ;              %FFT size

%BPSK modulation of each subcarrier
%complex bpsk data symbols
d=randsrc(Nc,1,[-1 1] )+j*randsrc(Nc,1,[-1 1]);

%carriers vector
carr=zeros(NFFT,1);
%place the used carriers in the center of carr vector
carr(NFFT/2-Nc/2+1:NFFT/2+Nc/2)=d;

%create the time-descetete OFDM symbol
s=ifft(carr,NFFT);


regards
 
Here is a file that may be helpful for you.
Enjoy it!
 
Amihomo -- in the code you've posted, why is the data vector placed in the center of the carr vector? What is the purpose of padding both sides of the data with zeros before the ifft?
 

lladnar23 said:
Amihomo -- in the code you've posted, why is the data vector placed in the center of the carr vector? What is the purpose of padding both sides of the data with zeros before the ifft?

Hi lladnar23


zero padding makes filter design requirments easier to be satisfied.

but in the case of my code, there is no difference where to place the carr vector.
it is done only for centering the spectrum of the OFDM symbol in the plot.this can also be done via fftshift command.

regards
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top