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

 Risposta accettata

Matt J
Matt J il 28 Dic 2022
Modificato: Matt J il 28 Dic 2022
{cell2mat(v)}

5 Commenti

Kamil Kacer
Kamil Kacer il 28 Dic 2022
It did this but i just want have 2 culumns
Matt J
Matt J il 28 Dic 2022
Modificato: Matt J il 28 Dic 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 il 28 Dic 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.
cell2mat(v(:))
Kamil Kacer
Kamil Kacer il 28 Dic 2022
sank you

Accedi per commentare.

Più risposte (0)

Categorie

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by