How to add arrays (horz. with different dimensions/size)
1 次查看(过去 30 天)
显示 更早的评论
Hello :) Another simply question (but not for me)
I will add 2 arrays horizontal. See Code. Ok it works in general. But it does not work if I have:
- array1= 1*9 string array
- array2= 7*1 string array
How can i create an 1*16 string array? Thank for further help.
array_combination=horzcat(array1,array2)
0 个评论
采纳的回答
madhan ravi
2020-7-9
[array1, array2.']
2 个评论
madhan ravi
2020-7-9
array_combination=horzcat(array1,array2.') % .' was missing
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!