I have two cell array
entryname1 =
'b'
'a'
entryname2 =
'd'
'c'
when i concatenate
entryname={entryname1 entryname2}
entryname =
{2x1 cell} {2x1 cell}
But I need to get the output as 'b' 'd' 'a' 'c' how to get an output like this.

 채택된 답변

Thomas
Thomas 2012년 4월 23일

1 개 추천

Try
entryname1 =['b';'a']
entryname2 =['d';'c']
entryname=[entryname1 entryname2]

추가 답변 (1개)

Junaid
Junaid 2012년 4월 23일

3 개 추천

try like this.
entryname=[entryname1 entryname2];
use [] instead of {}. I hope it will work.

카테고리

도움말 센터File Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

질문:

2012년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by