simple question about cell array resizing

1 view (last 30 days)
Just a simple question:
I have
A={[1,2]';[3,4,5,6]'}'
and want to transform it into a cell array:
A={[1,2,3,4,5,6]'}'
which is the fastest way to get it?
Thanks

Accepted Answer

Andrei Bobrov
Andrei Bobrov on 6 Mar 2015
out = {cat(1,A{:})}

More Answers (0)

Community Treasure Hunt

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

Start Hunting!