フィルターのクリア

Generate a set of 1000 elements where each element is a set of 40 elements

2 ビュー (過去 30 日間)
Mohammad  Ahmed
Mohammad Ahmed 2016 年 8 月 17 日
編集済み: Azzi Abdelmalek 2016 年 8 月 17 日
I want to Generate a Set of 1000 elements where each element is also a set of 40 elements. Apart from employing matrices, is there any other way.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 8 月 17 日
編集済み: Azzi Abdelmalek 2016 年 8 月 17 日
A=cell(1,1000)
B=cellfun(@(x) randi(10,1,40),A,'un',0) % Example

その他の回答 (1 件)

Thorsten
Thorsten 2016 年 8 月 17 日
You can use cell arrays. But why don't you want to use matrices?

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by