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에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!