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

 Akzeptierte Antwort

Matt J
Matt J am 28 Dez. 2022
Bearbeitet: Matt J am 28 Dez. 2022

0 Stimmen

{cell2mat(v)}

5 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by