selecting a specific range in a matrix and cell array
Mostrar comentarios más antiguos
I have a large cell array with many matrices. I want to select row 1 and column 16 which has a matrix table. in that matrix table i want to select row 861. How do I do that?
a{1,16:861}
Respuesta aceptada
Más respuestas (1)
Sean de Wolski
el 23 de Dic. de 2014
0 votos
Just use two lines of code. There's no shame in doing this. And since MATLAB passes implicitly by reference anyway, it won't require a memory copy unless you change something.
2 comentarios
AA
el 23 de Dic. de 2014
Sean de Wolski
el 23 de Dic. de 2014
Start here:
You can index into the cell array to extract its contents with {} or to extract the cell as ().
Categorías
Más información sobre Logical 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!