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 Center および File ExchangeCell Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by