How to join two matrix arrays together

조회 수: 4 (최근 30일)
Moe
Moe 2015년 6월 29일
댓글: Adhityan R 2020년 5월 1일
I have two matrices A(i) and B(i) with similar (i) arrays. This i will be vary in each run. For example for i = 3, A and B are:
A = [774 631 584];
B = [19 128 220];
I want matrix C to be:
C = [774,19;631,128;584,220]; % first array in matrix A comes with first array in matrix B

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 29일
편집: Azzi Abdelmalek 2015년 6월 29일
  댓글 수: 3
Azzi Abdelmalek
Azzi Abdelmalek 2015년 6월 29일
Adhityan R
Adhityan R 2020년 5월 1일
horzcat(A,B)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Types에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by