Cell to matrix conversion

I have a cell like this. I want to make in one matrix. I can do this
a = [v{1}; v{2}; v{3}]
but it would take so long sing the cell has 1084 elements. Can you please help me. How sould i use for or something.

回答 (1 件)

Voss
Voss 2022 年 12 月 28 日

0 投票

a = vertcat(v{:})

カテゴリ

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

タグ

質問済み:

2022 年 12 月 28 日

回答済み:

2022 年 12 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by