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.

 Akzeptierte Antwort

Thomas
Thomas am 23 Apr. 2012

1 Stimme

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

Weitere Antworten (1)

Junaid
Junaid am 23 Apr. 2012

3 Stimmen

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

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by