필터 지우기
필터 지우기

assign a cell array to first row of another cell array

조회 수: 3 (최근 30일)
saharsahar
saharsahar 2013년 6월 28일
how we can assign a cell array as first row of another cell array in loop and how we can acces the data?
Thanks

답변 (1개)

per isakson
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?

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by