simple question about cell array resizing

1 vue (au cours des 30 derniers jours)
ludvikjahn
ludvikjahn le 6 Mar 2015
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

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Data Types dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by