필터 지우기
필터 지우기

convert cell array to matrix

조회 수: 5 (최근 30일)
pavlos
pavlos 2012년 10월 1일
Hello,
Consider a cell array 300x1.
How can I create a matrix where the first 10 rows of the cell become the first row of the matrix, the 11th-20th rows become the second row, etc.
The resulting matrix should be 30x10.
Thsnk you.
Pavlos

채택된 답변

Jan
Jan 2012년 10월 1일
D = reshape(cat(1, C{:}), 10, [])
  댓글 수: 1
Andrei Bobrov
Andrei Bobrov 2012년 10월 1일
D = reshape(cat(1, C{:}), 10, []).'

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by