venkateshkumar
Newbie level 6
HOW TO GENERATE SUBCARRIERS in ofdm ?
i am using matlab 6.5 ver
i am using matlab 6.5 ver
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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);
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?