Breaking down arrays into multiple smaller arrays
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to break down an array such as this one:
into three separate arrays, based on the rpm column, so that at the end I will have one grren, one gray and one pink array. How can I do this efficiently?
0 Kommentare
Antworten (1)
Walter Roberson
am 30 Mär. 2018
splitapply(@(M) {M}, YourData, findgroups(YourData(:,3)))
0 Kommentare
Siehe auch
Kategorien
Mehr zu Multidimensional 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!