concatenation of 2d matrix to form 3d matrix horizontally

1 回表示 (過去 30 日間)
ABDUL
ABDUL 2018 年 2 月 10 日
編集済み: Stephen23 2018 年 2 月 10 日
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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by