I have a cell matrix and would like to merge these all columns together vertically. How can I do that?

조회 수: 1 (최근 30일)
% this just gives me two cell vertically concatenated; I waould like to merge the data of these columns into one .
data_final = vertcat(data(:,1),data(:,2));

채택된 답변

dpb
dpb 2019년 6월 2일
data=cell2mat(data.');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by