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 日

1 投票

A = cell(1,5);
for K = 1 : 5
A{K} = randi(6, 1, 10);
end

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

質問済み:

2017 年 10 月 3 日

回答済み:

2017 年 10 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by