フィルターのクリア

How to access the contents of inner cells in a cell??

2 ビュー (過去 30 日間)
sani ars
sani ars 2012 年 9 月 27 日
I want to access the contents of inner cells of a cell... what is its syntax??. e.g I have a cell named "fold{j}" that contains the cells in it named with "inner_cell{i}"
i.e. each fold contains four inner_cell in it....
Now what should I do e.g. if I want to access the contents of "inner_cell{3}" of fold{2} ??....
  1 件のコメント
Image Analyst
Image Analyst 2012 年 9 月 27 日
What does this have to do with pattern recognition (like your tag suggests)?

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

回答 (1 件)

Wayne King
Wayne King 2012 年 9 月 27 日
x = cell(2,1);
x{1} = cell(3,1);
x{1}{1} = randn(3,1);
Now to access
x{1}{1}
Note
x{1}{2} % is empty

Community Treasure Hunt

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

Start Hunting!

Translated by