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 で Creating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by