horzcat cell array of string
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mederic Mainson
am 21 Sep. 2016
Kommentiert: KSSV
am 21 Sep. 2016
Hi Guys, I am a bit buffled, it shouldnt be so hard. I have a cell array of strings, see image below for details. I want to combine the 2 colunms of this cell array into one colunm. i do this:
B=[A{:,1} A{:,2}];
But it combines everything into one unique cell... Help please. Cheers Medie

0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
KSSV
am 21 Sep. 2016
a1 = {'2016/09/20'} ;
a2 = {'03:16:38'} ;
strcat(a1,a2)
4 Kommentare
Walter Roberson
am 21 Sep. 2016
That will not leave the customary space between the parts. The strcat I show will add in the space.
KSSV
am 21 Sep. 2016
space can be added using: strcat(a1,{' '},a2). I was thinking he wanted to merge them into single.
Siehe auch
Kategorien
Mehr zu Data Types finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!