Generate a set of 1000 elements where each element is a set of 40 elements
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mohammad Ahmed
il 17 Ago 2016
Modificato: Azzi Abdelmalek
il 17 Ago 2016
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.
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 17 Ago 2016
Modificato: Azzi Abdelmalek
il 17 Ago 2016
A=cell(1,1000)
B=cellfun(@(x) randi(10,1,40),A,'un',0) % Example
0 Commenti
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Matrices and Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!