Concat and display embedded arrays
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Azzi Abdelmalek
el 1 de Jun. de 2013
Is there any error message? What do you mean by : I can't see the rows (10) and cols (5)
Respuesta aceptada
Azzi Abdelmalek
el 1 de Jun. de 2013
Editada: Azzi Abdelmalek
el 1 de Jun. de 2013
B = [];
for j = 1:10
A = [];
for i=1:5
x=randi(3);
A=[A;x];
end
B =[B;A']
end
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Type Conversion en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!