Filter löschen
Filter löschen

simple question about cell array resizing

1 Ansicht (letzte 30 Tage)
ludvikjahn
ludvikjahn am 6 Mär. 2015
Beantwortet: Andrei Bobrov am 6 Mär. 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

Akzeptierte Antwort

Andrei Bobrov
Andrei Bobrov am 6 Mär. 2015
out = {cat(1,A{:})}

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by