concatenation of 2d matrix to form 3d matrix horizontally

1 Ansicht (letzte 30 Tage)
ABDUL
ABDUL am 10 Feb. 2018
Bearbeitet: Stephen23 am 10 Feb. 2018
hi... can any one help me in concatenate the 2d matrix to form 3d matrix my sample code is input to the sample is
ofdm_symbol=randn(8,10,2)+(1j*randn(8,10,2));
time_domain_signal(i,:,:)=abs(ifft([ofdm_symbol(i,1:4,ii) zeros(N,(L-1)*N,1) ofdm_symbol(i,5:8,ii)]))
size(ofdm_symbol(i,1:4,ii)) = 1x4
size(ofdm_symbol(i,5:8,ii)) = 1x4
size(zeros(N,(L-1)*N,1))= 8x24
i am getting the error as
Error using horzcat
Dimensions of matrices being concatenated are not consistent.
Error in mimo_pts (line 60)
time_domain_signal(i,:,:)=abs(ifft([ofdm_symbol(i,1:4,ii) zeros(N,(L-1)*N,1) ofdm_symbol(i,5:8,ii)]));
how to debug this sample of this code i have tried all possible combinations to get the output.

Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices 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!

Translated by