Concat and display embedded arrays
2 ビュー (過去 30 日間)
古いコメントを表示
Can anyone help me to understand why when I try to concat Array B, I can't see the rows (10) and cols (5).
A = [];
B = [];
for j = 1:10
for i=1:5
x=randi(3);
Ai = x;
A = [A;Ai];
end
B{j} = A';
B = [B; B{j}];
end
Thanks.
2 件のコメント
Azzi Abdelmalek
2013 年 6 月 1 日
Is there any error message? What do you mean by : I can't see the rows (10) and cols (5)
採用された回答
Azzi Abdelmalek
2013 年 6 月 1 日
編集済み: Azzi Abdelmalek
2013 年 6 月 1 日
B = [];
for j = 1:10
A = [];
for i=1:5
x=randi(3);
A=[A;x];
end
B =[B;A']
end
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Tables についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!