필터 지우기
필터 지우기

Split array into multiple columns based on another array

조회 수: 3 (최근 30일)
Chi Pham
Chi Pham 2019년 9월 11일
편집: Matt J 2019년 9월 11일
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개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by