multiple arrays in one result

1 Ansicht (letzte 30 Tage)
Kuang-Yu WANG
Kuang-Yu WANG am 25 Jun. 2018
Beantwortet: Walter Roberson am 25 Jun. 2018
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}

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 25 Jun. 2018
cell2mat(YourCellArray(:))
or equivalently in this case,
vertcat(YourCellArray{:})

Weitere Antworten (1)

Stephen23
Stephen23 am 25 Jun. 2018
Where C is your cell array:
vertcat(C{:})

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by