Combine two vectors together
조회 수: 1 (최근 30일)
이전 댓글 표시
For example I got a = [1 3 5], b = [2 4] and I want to get a c = [1 2 3 4 5 ]
Basically it'd insert the vaule from b between a's two elements
댓글 수: 0
답변 (3개)
Osip Vayner
2020년 8월 28일
KSSV's code is correct.
And just in case you want to combine two vectors vertically:
d = sort([a;b])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!