Concat and display embedded arrays
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Azzi Abdelmalek
le 1 Juin 2013
Is there any error message? What do you mean by : I can't see the rows (10) and cols (5)
Réponse acceptée
Azzi Abdelmalek
le 1 Juin 2013
Modifié(e) : Azzi Abdelmalek
le 1 Juin 2013
B = [];
for j = 1:10
A = [];
for i=1:5
x=randi(3);
A=[A;x];
end
B =[B;A']
end
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Data Type Conversion dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!