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

1 visualizzazione (ultimi 30 giorni)
% 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));

Risposta accettata

dpb
dpb il 2 Giu 2019
data=cell2mat(data.');

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by