How can i insert Cyclic prefix in an array?

2 ビュー (過去 30 日間)
sharif
sharif 2014 年 6 月 22 日
コメント済み: Walter Roberson 2018 年 4 月 8 日
N=1024; Cp=64; NTx=8;
% Constellation of Binary-Coded 16-QAM
C=[-3+3j, -3+1j, -3-3j, -3-1j, -1+3j, -1+1j, -1-3j, -1-1j,...
3+3j, 3+1j, 3-3j, 3-1j, 1+3j, 1+1j, 1-3j, 1-1j];
% Generate random symbols
bk= randi ([0,15],NTx,N);
Dk=C(bk+1);
d=ifft(Dk).*sqrt(N);
tx=[d(end-Cp+1:end) d];
I have d is (8X1024) and I want to add Cyclic Prefix for each row, how can I do that?? [d(end-Cp+1:end) d]; this works for vectors only.

採用された回答

Cedric
Cedric 2014 年 6 月 22 日
編集済み: Cedric 2014 年 6 月 22 日
>> tx = [d(:,end-Cp+1:end) d] ;
>> size(tx)
ans =
8 1088
and
>> tx = [zeros(size(d,1), Cp) d] ;
if you wanted zero padding.
  1 件のコメント
sharif
sharif 2014 年 6 月 22 日
Thanks for the answer :)

サインインしてコメントする。

その他の回答 (1 件)

Qaisar Hussain Alvi
Qaisar Hussain Alvi 2018 年 4 月 8 日
編集済み: Walter Roberson 2018 年 4 月 8 日
IFFT_Data = ifft(d,N);
txCy = [IFFT_Data(N-Ncp+1):N,:); IFFT_Data];
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 4 月 8 日
What is the purpose of doing an ifft() of something that was just calculated as an ifft ?
d=ifft(Dk).*sqrt(N);

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeStandard File Formats についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by