dimension mismatch error in matrix.?
2 ビュー (過去 30 日間)
古いコメントを表示
A = [1 2 3;3 4 5;5 6 7]
B = [4 5 6;6 7 8;7 8 9]
For I = 1:3
C(:,I) = [A(:,2*I-1) B(:,2*I)]
end
I want C as a matrix whose odd columns will be from A and even columns will be from B. So that output matrix will be 3x6 But this program shows dimension mismatch error.
0 件のコメント
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!