Error using horzcat Dimensions of arrays being concatenated are not consistent
조회 수: 2 (최근 30일)
이전 댓글 표시
Dear,
I have a program but When I run it, an error occurs:
Error using horzcat
Dimensions of arrays being concatenated are not consistent.
Error in (line 34)
H1_modified = [H1 extra_cols];
How can I fix this error please ?
댓글 수: 5
Dyuman Joshi
2023년 5월 3일
"We can't specify the final size of H1_modified because the size depends on the code rate."
Then what is the relation of final size of H1 with code rate?
답변 (1개)
Jon
2023년 5월 2일
On line 34 H1 has m*(m-1) rows, but extra_cols only has m rows. So you can not horizontally concatenate H1 and extra_cols using
H1_modified = [H1 extra_cols];
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!