Split array into multiple columns based on another array

2 visualizaciones (últimos 30 días)
Chi Pham
Chi Pham el 11 de Sept. de 2019
Editada: Matt J el 11 de Sept. de 2019
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.

Respuesta aceptada

Matt J
Matt J el 11 de Sept. de 2019
Editada: Matt J el 11 de Sept. de 2019
result = splitapply(@(x) {x}, DHB_combine,index_combine);

Más respuestas (0)

Categorías

Más información sobre Data Types 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