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 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!