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

 Accepted Answer

Matt J
Matt J on 28 Dec 2022
Edited: Matt J on 28 Dec 2022
{cell2mat(v)}

5 Comments

It did this but i just want have 2 culumns
Matt J
Matt J on 28 Dec 2022
Edited: Matt J on 28 Dec 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.
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(:))
sank you

Sign in to comment.

More Answers (0)

Categories

Tags

Asked:

on 28 Dec 2022

Commented:

on 28 Dec 2022

Community Treasure Hunt

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

Start Hunting!