Filter löschen
Filter löschen

How to index a cell

1 Ansicht (letzte 30 Tage)
Lei am 27 Apr. 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.

Akzeptierte Antwort

Thomas am 27 Apr. 2012
  1 Kommentar
Lei am 27 Apr. 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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)


Community Treasure Hunt

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

Start Hunting!

Translated by