Concat and display embedded arrays
1 次查看(过去 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 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!