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

merge multiple columns of a cell matrix

% 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));

Best Answer

  • data=cell2mat(data.');