Create Array Within Array

19 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2017-10-3
A = cell(1,5);
for K = 1 : 5
A{K} = randi(6, 1, 10);
end

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by