Split array into multiple columns based on another array

2 次查看(过去 30 天)
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