KIndly see the following code and help me to combine submatrices of my output "sigRx"
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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');
errorRate = comm.ErrorRate('ResetInputPort',true);
ofdmDims = info(ofdmMod)
numDC = ofdmDims.DataInputSize(1)
K=4;
M=4;
V=6;
EbN0 = 0:20;
SNR = EbN0 + 10*log10(log2(M)*V/K)+ 10*log10(numDC/numSC);
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)
end
end
Just focus from st(9945,4) to end lines. output of sigRx(340 matrices of 117 by 1) which is equal to (9945 by 4), a single matrix that is my requirement.
Below i have tried to write a matrix of 9945 by 4, which I required
(a_1,1 a_1,2 a_1,3 a_1,4
uptill uptill uptill uptill
a_117,1 a_117,2 a_117,3 a_117,4
uptill uptill uptill uptill
a_9945,1 a_9945,2 a_9945,3 a_9945,4)
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Deep Learning Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!