concatenation of 2d matrix to form 3d matrix horizontally

1 次查看(过去 30 天)
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.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by