fusing two cell array columns into one

1 view (last 30 days)
SUppose I have two different cell arrays. How can I fuse these two into one single cell array column so that i get 19-Jan-2006 05:53 and so on
x1= '05:32'
'05:53'
'06:14'
'06:40'
'07:02'
'07:23'
'07:46'
'08:06'
'08:29'
'08:50'
x2= '19-Jan-2006'
'19-Jan-2006'
'19-Jan-2006'
'19-Jan-2006'
'19-Jan-2006'
'19-Jan-2006'
'19-Jan-2006'
'19-Jan-2006'
'19-Jan-2006'
'19-Jan-2006'

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 6 May 2016
cellfun(@(x,y) [x ' ' y],x1,x2,'un',0)

More Answers (0)

Categories

Find more on Structures in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!