Borrar filtros
Borrar filtros

Breaking down arrays into multiple smaller arrays

1 visualización (últimos 30 días)
Saeid
Saeid el 30 de Mzo. de 2018
Respondida: Walter Roberson el 30 de Mzo. de 2018
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?

Respuestas (1)

Walter Roberson
Walter Roberson el 30 de Mzo. de 2018
splitapply(@(M) {M}, YourData, findgroups(YourData(:,3)))

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!

Translated by