How can I convert this cell array into a matrix?

I have a 1x73 cell array (73 is number of neurons) filled with 1x60 doubles, {FR} (60 is number of bins). I would like to transform this into a 73 x 60 (NxB) matrix. The cell2mat function gives me a 1x4380 matrix. How can I fix this?

 採用された回答

KSSV
KSSV 2020 年 5 月 27 日

0 投票

Use reshape after that.
iwant = reshape(cell2mat(C),60,[])' ;

その他の回答 (1 件)

カテゴリ

ヘルプ センター および File ExchangeCell Arrays についてさらに検索

タグ

質問済み:

2020 年 5 月 27 日

回答済み:

2020 年 5 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by