How to index a cell

1 次查看(过去 30 天)
Lei
Lei 2012-4-27
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.

采纳的回答

Thomas
Thomas 2012-4-27
  1 个评论
Lei
Lei 2012-4-27
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by