A= [2 3 4]; B=[2 3 4]; Output C=[22 33 44]; Merge 2 matrix elements
조회 수: 1 (최근 30일)
이전 댓글 표시
HI,
I want to merge a matrix A(1xN) with B(1xN)....The elements in both matrices are same.....the output C(1xN) should merge both matrices......
Thank you
추가 답변 (3개)
Azzi Abdelmalek
2012년 11월 12일
편집: Azzi Abdelmalek
2012년 11월 12일
A=[11 22 33];
c=num2str(A')
d=[c,c]
B=str2num(d)
B=B'
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!