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 CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by