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 Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by