How to index a cell

5 visualizaciones (últimos 30 días)
Lei
Lei el 27 de Abr. de 2012
Hi everyone, I have a text file and I imported it with textscan, but i have problem to index cell. Anybody would like to give a hand ? Thanks!
whos a Name Size Bytes Class Attributes
a 1x5 107750 cell
a is my cell. a{1,1} is 169*1 cell.
I tried to use size or length. for instance size a(1)...etc
but the returned outcome is 1. It should be 169. I dont know why.

Respuesta aceptada

Thomas
Thomas el 27 de Abr. de 2012
  1 comentario
Lei
Lei el 27 de Abr. de 2012
hi Thomas,
Thanks! Your answer works! Actually, I googled it and I found this one. I am just getting confused since somewhere said my cell a is a nested cell, is this right? i.e., A cell can contain another cell array, or even an array of cell arrays.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre String Parsing 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