How do I merge this array so I get only one cell. All the parts of the array(1084) go in a row

 Réponse acceptée

Matt J
Matt J le 28 Déc 2022
Modifié(e) : Matt J le 28 Déc 2022

0 votes

{cell2mat(v)}

5 commentaires

Kamil Kacer
Kamil Kacer le 28 Déc 2022
It did this but i just want have 2 culumns
Matt J
Matt J le 28 Déc 2022
Modifié(e) : Matt J le 28 Déc 2022
Perhaps this is what you want?
tmp=cat(3, v{:});
a=tmp(:,1,:); b=tmp(:,2,:);
result={a(:,:) , b(:,:)} %this cell array has two columns
If not, you have some editing to do on your original post. I can't tell what it means.
Kamil Kacer
Kamil Kacer le 28 Déc 2022
I want every odd column to be under column number 1 and every even column uder column number 2.
Eventually I just want to have long 2 columns with many rows.
Matt J
Matt J le 28 Déc 2022
cell2mat(v(:))
Kamil Kacer
Kamil Kacer le 28 Déc 2022
sank you

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by