Extracting sub cell arrays from a cell array

11 ビュー (過去 30 日間)
Sam Smith
Sam Smith 2018 年 11 月 2 日
編集済み: Guillaume 2018 年 11 月 2 日
Suppose I have a 10-by-1 cell array consisting of ten 1-by-7 cell arrays. How do I extract the sub cell arrays to get a 10-by-7 array?

採用された回答

Guillaume
Guillaume 2018 年 11 月 2 日
編集済み: Guillaume 2018 年 11 月 2 日
vertcat(yourcellarray{:})
which will fail if any of the subcell arrays does not have the same number of columns as any of the others.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by