Split array into multiple columns based on another array

Hi, I have 2 double arrays, 1 array (DHB_combine)is values and the other is index (index_combine). I want to split DHB_combine into multiple columns based on the index.

 채택된 답변

Matt J
Matt J 2019년 9월 11일
편집: Matt J 2019년 9월 11일
result = splitapply(@(x) {x}, DHB_combine,index_combine);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2019년 9월 11일

편집:

2019년 9월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by