how to combine strings
3 次查看(过去 30 天)
显示 更早的评论

Hi I want to combine those strings into a single string and without the space of the last string. Can anyone tell me how please? Thanks
1 个评论
Bruno Luong
2018-10-15
Can't you post the strings in a text form rather than this screen capture that no one can possibly see?
回答(1 个)
madhan ravi
2018-10-15
编辑:madhan ravi
2018-10-15
An example: (since you didn’t post the code but this syntax strcat() should work for your case )
s1 = {'abcde'};
s2 = {'jkl'};
s = strcat(s1,s2) %result without space
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!