simple question about cell array resizing

조회 수: 1 (최근 30일)
ludvikjahn
ludvikjahn 2015년 3월 6일
답변: Andrei Bobrov 2015년 3월 6일
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

채택된 답변

Andrei Bobrov
Andrei Bobrov 2015년 3월 6일
out = {cat(1,A{:})}

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by