Borrar filtros
Borrar filtros

How to index into a multi layer cell?

5 visualizaciones (últimos 30 días)
liu James
liu James el 14 de Dic. de 2016
Respondida: Antonio Aguirre el 14 de Dic. de 2016
I have a 1x34 cell name low and within each cell there is a 1079x1 cell. I would like to grab a number from cell 2 of 1x34 and row 100 of the 1079x1 cell. I would have done low{1,2(100)}. But this seems to not work. I've tried low{1,2,100} as well. I'm not sure what to do. Further, I would like to manipulate and pull out sections of the cell such as from row 100-1000 lets say. How to do this?

Respuesta aceptada

Antonio Aguirre
Antonio Aguirre el 14 de Dic. de 2016
In general, you need to index into the cell for accessing the data as follows : low{1,i}{i,1}
For the particular question that you asked : low{1,2}{100,1}
Let me know if you have any questions.

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by