to save different dimension cell to double
조회 수: 2 (최근 30일)
이전 댓글 표시
each cell have different number entries..
I wish to write all entries in all cells one after other in a double format///
any direction in this regard will be of great help
댓글 수: 3
채택된 답변
KSSV
2016년 12월 1일
C_cell = cell(2) ;
for i =1:2
for j = 1:2
C_cell{i,j} = {rand(3)} ;
end
end
C_double = cellfun(@cell2mat,C_cell,'un',0) ;
C_cell
C_double
댓글 수: 4
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!