0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

OFDM GI 挿入と削除

Posted at

#サンプルコード

%% > octave-cli -q
%% octave> pkg install signal control communications -forge
pkg load communications
Q = 8;
M = 2^Qm;

%Nin = 16; % 16 point-FFT
Nin = M; % M point-FFT
Ngi = Nin/4;
Z = sqrt( mean( 2*(1:2:2^(Qm/2)).^2 ) );
repidx = @(i,N) mod( i-1, N)+1;

%% Dat Gen
txdat = qammod( mod( 1:Nin, M ), M )/Z;

%% Tx
txwave = ifft(txdat);
tx_idx = repidx(-Ngi+1:Nin,Nin); % with GI
txwavegi = txwave( tx_idx );

%% Channel
rxwavegi = txwavegi;

%% Rx
rx_idx0 = Ngi + repidx(  1:Nin/2     ,Nin);
rx_idx1 = Ngi + repidx(  Nin/2+1:Nin ,Nin);
rxwave = rxwavegi([ rx_idx0 rx_idx1 ]);

%% Debug Print
rxdat = fft(rxwave);
plot( rxdat,'*')
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?