converting two cells into one

I have two cells :
a = 4
8
b=
the
be
How do I make them one cell . ? ie.
c=
the 4
be 8
Thank you.

 채택된 답변

Vieniava
Vieniava 2011년 2월 8일

0 개 추천

Consider following code:
a={'4'; '8'};
b={'the' ; 'be'};
spaces={' ' ; ' '};
c=strcat(b,spaces,a)
EDIT:
calternative=[b a];

댓글 수: 1

vish
vish 2011년 2월 8일
I need the data in separate columns in the cell. Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Cell Arrays에 대해 자세히 알아보기

태그

질문:

2011년 2월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by