필터 지우기
필터 지우기

how to create cells into a cell??...

조회 수: 4 (최근 30일)
sani ars
sani ars 2012년 9월 26일
my syntax is as follows:
for j = 1:7
for i=1:4
inner_cell{i} = train_data;
end
end
I have to put above created four cells into another cell named fold{j}....
how can I do that???
I don't want to use the method, of combining cells, given in MATLAB help as in that, there is need to put cell names one by one...
Is there any other way of doing this?? i.e fold{j}(inner_cell{i})
Is it correct??? if not, what should be the syntax then??..

채택된 답변

Jan
Jan 2012년 9월 26일
outer_cell = cell(1,7);
for j = 1:7
inner_cell 0 cell(1, 4);
for i=1:4
inner_cell{i} = train_data;
end
outer_cell{j} = inner_cell;
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Pattern Recognition and Classification에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by