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 view (last 30 days)
Show older comments
kindly tell me how to combine these subsets in one matrix. for example I'm working on following lines.
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
I'm getting 340 sub matrices of "Sigtx" of 117 by 1. How to combine them in a single matrix?
thanku.
4 Comments
Stephen23
on 19 Nov 2018
@Sajid Sarwar: please do NOT post the same question multiple times. It does not make it faster or easier for you to get help on this forum.
Answers (1)
Stephen23
on 18 Nov 2018
Edited: Stephen23
on 18 Nov 2018
Add these three lines to your code:
C = cell(4,85);
...
for ii = 1:85
...
for jj = 1:4
sigRx = ...
C{jj,ii} = sigRx;
end
end
V = vertcat(C{:})
11 Comments
Stephen23
on 19 Nov 2018
Edited: Stephen23
on 19 Nov 2018
@Sajid Sarwar: why are you just repeating your comments? So far you have totally ignored anything that I have written: your code does not show any attempt to use what I have shown you in my answer or my comments, so I am not quite sure how I can help you, if you just totally ignore what I write.
See Also
Categories
Find more on OFDM in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!