can strjoin join columns?
3 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
i have difficuty with the follow problem: (probably because iam not that good with Matlab)
say i have this:
AA = horzcat(date(1:2),tijd1(1:2))
AA =
'28-01-2015' '20:11:00'
'28-01-2015' '20:11:15'
i want to get this:
BB = strjoin(AA)
BB=
28-01-2015 20:11:00
28-01-2015 20:11:15
but strjoin gives een error unfortunatly
could you help me out?
many thanks!
Gr Paul
0 个评论
回答(2 个)
Star Strider
2015-2-7
There may be more efficient ways to do what you want, but this works:
BB = cellstr([char(AA(:,1)) repmat(' ', size(AA,1),1) char(AA(:,2))]);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!