Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

conversion of cell to matrixes

조회 수: 1 (최근 30일)
Tino
Tino 2019년 5월 31일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello pls
How do I convert a one column cells k which is a non scalar vector of 12000 rows to matrices For instance [K{:}] to K(:, 1). Thanks for your help in advance Tino
  댓글 수: 1
Walter Roberson
Walter Roberson 2019년 5월 31일
I am not clear? What is size(K{1}) ? In the result, where should K{2} appear relative to K{1} ?
If K is a cell of column vectors, the [K{:}] would create an array in which each entry becomes a column, which sounds like what you are asking for.

답변 (1개)

KSSV
KSSV 2019년 5월 31일
편집: KSSV 2019년 5월 31일
Read about cell2mat
iwant = cell2mat(K) ;

태그

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by