hi,how to convert 6x6 cell into 1x36 cell in matlab

조회 수: 3 (최근 30일)
kaavya subramani
kaavya subramani 2016년 11월 22일
댓글: kaavya subramani 2016년 11월 22일
(i.e) i need answer all cells in single row

채택된 답변

KSSV
KSSV 2016년 11월 22일
편집: KSSV 2016년 11월 22일
k = cell(6,6) ;
for i = 1:6
for j = 1:6
k{i,j} = rand(3) ;
end
end
iwant = reshape(k,1,[]);
or
iwant = k(:)' ;
doc reshape.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Language Support에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by