Breaking down arrays into multiple smaller arrays
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Walter Roberson
el 30 de Mzo. de 2018
splitapply(@(M) {M}, YourData, findgroups(YourData(:,3)))
0 comentarios
Ver también
Categorías
Más información sobre Multidimensional Arrays en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!