simple question about cell array resizing

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by