multiple arrays in one result

1 回表示 (過去 30 日間)
Kuang-Yu WANG
Kuang-Yu WANG 2018 年 6 月 25 日
回答済み: Walter Roberson 2018 年 6 月 25 日
I have one matrix that have 63 arrays and with many numbers inside. Does there any method that don't need to create 63 words for make these arrays together? such as: {26*7 double} {47*7 double} ..... {200*7 double} {81*7 double} become = {n*7 double}

採用された回答

Walter Roberson
Walter Roberson 2018 年 6 月 25 日
cell2mat(YourCellArray(:))
or equivalently in this case,
vertcat(YourCellArray{:})

その他の回答 (1 件)

Stephen23
Stephen23 2018 年 6 月 25 日
Where C is your cell array:
vertcat(C{:})

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by