To read a cell array containing multiple cell array.

Hi...
I would like to know the answer for my query. I have a cell array containing many cell array but I would like to read only one array at a time and this has to be in loop to read the specific cell array which I would like to read.
Columns 1 through 6 {14X61 cell} {5X61 cell} {2x61 cell} [] [] []
Regards, M. Sarfudeen

回答 (1 件)

Michael Haderlein
Michael Haderlein 2014 年 9 月 23 日
編集済み: Michael Haderlein 2014 年 9 月 23 日

0 投票

Do you mean something like
firstcell=myarray{1};
Or, in a loop,
for cnt=1:length(myarray)
thiscell=myarray{cnt};
display(size(thiscell));
end

2 件のコメント

Sarfudeen
Sarfudeen 2014 年 9 月 23 日
I have to read the cell array contains multiple cell array. But I have to read only one array.
For Example,
If first array is of 14 X 61, then it should be read. Also if second array is of 5 X 61, then second array only should be read but not first array.
This must be the sequence to be followed in my problem.
Regards, M.Sarfudeen
Michael Haderlein
Michael Haderlein 2014 年 9 月 24 日
How do you decide which cell you want to read? Always the last nonempty cell?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeMatrices and Arrays についてさらに検索

タグ

質問済み:

2014 年 9 月 23 日

コメント済み:

2014 年 9 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by