I am using following code for plotting spectrum of OFDM.
Hs=spectrum.mtm(30);
Pxx=psd(Hs,IFFT_output(:),'Fs',nFFTSize);
plot(Pxx.frequencies+1,10*log10((Pxx.data)),'b');
size of IFFT_output is 128x100 and size of nFFTSize is 128. It works fine. But when I add Cyclic prefix of 32 samples, the size of IFFT_output becomes 160x100. To plot the spectrum of this new variable, should I change nFFTSize.

답변 (2개)

Albatross
Albatross 2015년 6월 11일

0 개 추천

To plot the spectrum of the (OFDM modulated time domain signal + cyclic prefix) you need to change nFFTsize to 160. You can zero pad to 256 if necessary to speed up the fft and then plot the spectrum. To demodulate the received signal correctly, you need to strip out the cyclic prefix first before the fft.
Amit Kansal
Amit Kansal 대략 2시간 전

0 개 추천

In this line of code
Pxx=psd(Hs,IFFT_output(:),'Fs',nFFTSize);
nFFTSize represents the sampling frequency (FS) and so, yes, its value should be changed when adding the cyclic prefix to teh OFM modulated signal (128 to 160).

카테고리

태그

질문:

2015년 2월 11일

답변:

2026년 5월 18일 17:01

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by