assign a cell array to first row of another cell array
3 ビュー (過去 30 日間)
古いコメントを表示
how we can assign a cell array as first row of another cell array in loop and how we can acces the data?
Thanks
0 件のコメント
回答 (1 件)
per isakson
2013 年 6 月 29 日
編集済み: per isakson
2013 年 6 月 29 日
Try this:
another_cell_array = cell( 3, 1 );
my_cell_array = {'my','cell','array'};
another_cell_array{1,1} = my_cell_array;
ca1 = another_cell_array{1,1}
str = another_cell_array{1,1}{1,2}
returns
ca1 =
'my' 'cell' 'array'
str =
cell
.
"in loop" how do you mean?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!