how to create a matrix from specific Cell array elements?

I have a cell array (dimensions 21x8) and i need to get the values (1,1 - 1,2 - 2,1 - 2,2) and create a matrix, each element on the cell array is a vector of 10 elements. Which is the best way to solve this? Thank you in advance

 採用された回答

Stephen23
Stephen23 2016 年 8 月 26 日
編集済み: Stephen23 2016 年 8 月 26 日

0 投票

Where C is your cell array:
cell2mat(C(1:2,1:2))

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2016 年 8 月 26 日

編集済み:

2016 年 8 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by