How to access an cell array using an cell array of indices
Mostrar comentarios más antiguos
Hello All, Suppose we have cell arrays as A={[1 2 3],[4 5 6 7 8],[9 10 11 12]} B={[1:2],[2:4],[1:3]} How can I access A using B as indices, namely, extracting the first cell of A, A{1} using the index number from B{1}, etc. Therefore the output will be {[1 2],[5 6 7],[9 10 11]}
I greatly appreciate your input!!
Respuesta aceptada
Más respuestas (1)
shelley
el 1 de Mayo de 2017
0 votos
Categorías
Más información sobre Data Types en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!