Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How to combine 340 sub matrices of 117 by 1 into one matrix of 9945 by 1. I'm working on ofdm(subcarriers=128, cp length=32) and got 117 data carriers. That's why ofdm requires input matrix of 117 by 1

1 回表示 (過去 30 日間)
Sajid Sarwar
Sajid Sarwar 2018 年 11 月 18 日
閉鎖済み: Stephen23 2018 年 11 月 19 日
kindly tell me how to combine these subsets in one matrix. for example I'm working on following lines.
numSC = 128; % Number of OFDM subcarriers
cpLen = 32; % OFDM cyclic prefix length
ofdmMod = comm.OFDMModulator('FFTLength',numSC,'CyclicPrefixLength',cpLen);
ofdmDemod = comm.OFDMDemodulator('FFTLength',numSC,'CyclicPrefixLength',cpLen);
channel = comm.AWGNChannel('NoiseMethod','Variance', ...
'VarianceSource','Input port');
ofdmDims = info(ofdmMod)
numDC = ofdmDims.DataInputSize(1)
st=rand(9945,4)
for n=1:85
Baserow = (n-1) * 117;
for n1 = 1:4
Subset = st(Baserow+(1:117),n1, :)
txSig = ofdmMod(Subset);
>> y = awgn(txSig, SNR(k));
>> sigRx = ofdmDemod(y); % gives 340 sub matrices of "Sigtx" of 117 by 1. How to combine them in a single matrix?
end
end
C = cell(4,85);
...
for ii = 1:85
...
for jj = 1:4
sigRx = ...
C{jj,ii} = sigRx;
end
end
V = vertcat(C{:})
but getting folllowing error
C{jj,ii} = sigRx;
Error: The expression to the left of the equals sign is not a valid target for an assignment.
how to fix this error?
  1 件のコメント
Stephen23
Stephen23 2018 年 11 月 19 日
Duplicate:
https://www.mathworks.com/matlabcentral/answers/430567-how-to-combine-340-sub-matrices-of-117-by-1-into-one-matrix-of-9945-by-1-i-m-working-on-ofdm-subcar

回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by