Generate a set of 1000 elements where each element is a set of 40 elements
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohammad Ahmed
am 17 Aug. 2016
Bearbeitet: Azzi Abdelmalek
am 17 Aug. 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 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 17 Aug. 2016
Bearbeitet: Azzi Abdelmalek
am 17 Aug. 2016
A=cell(1,1000)
B=cellfun(@(x) randi(10,1,40),A,'un',0) % Example
0 Kommentare
Weitere Antworten (1)
Thorsten
am 17 Aug. 2016
You can use cell arrays. But why don't you want to use matrices?
0 Kommentare
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!