Create Array Within Array
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Matthew
el 3 de Oct. de 2017
Respondida: Walter Roberson
el 3 de Oct. de 2017
I need to create an array. Within that array, each cell of the array is a numerical array unto itself (i.e., child arrays within a parent array). I did it accidentally a few weeks ago, but cannot remember how. Would somebody be able to give me some guidance?
Thanks in advance,
M Ridzon
0 comentarios
Respuesta aceptada
Walter Roberson
el 3 de Oct. de 2017
A = cell(1,5);
for K = 1 : 5
A{K} = randi(6, 1, 10);
end
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Operators and Elementary Operations 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!