combine celle array of cell array vertically
조회 수: 8 (최근 30일)
이전 댓글 표시
Hi, I have a cell arrays of cell array 'ABC'. Rows of ABC represent data from different experiment. Columns of ABC represent different type of measurement for experiments. for example columns 1 is the time stamp of each sample. at the moment i have a m*n cell array of cell array. I want to concatenate ABC so i end up with a cell array of cell array with a dimension of 1*n. Any ideas? I used
vertcat(ABC{:})
but it concatenates the all data into 1 colunm, i want to keep my colunms... Cheers
Screen capture:


댓글 수: 0
채택된 답변
추가 답변 (2개)
KSSV
2016년 9월 19일
You can use reshape to convert your mxn cell array into any desired size. As you want to convert it to column. Use:
A = reshape(ABC,[],1) ; % 1 specifies the column, [] matlab decides the number of rows (=m*n)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!