필터 지우기
필터 지우기

Breaking down arrays into multiple smaller arrays

조회 수: 1 (최근 30일)
Saeid
Saeid 2018년 3월 30일
답변: Walter Roberson 2018년 3월 30일
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?

답변 (1개)

Walter Roberson
Walter Roberson 2018년 3월 30일
splitapply(@(M) {M}, YourData, findgroups(YourData(:,3)))

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by