How to add arrays (horz. with different dimensions/size)
조회 수: 2 (최근 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에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!