How to combine two arrays?
조회 수: 290 (최근 30일)
이전 댓글 표시
I have two arrays
x = 561x1 double
y = 561x1 double
How can i combine it into
z = 561x2 double
채택된 답변
추가 답변 (1개)
Opeyemi Kehinde
2021년 12월 17일
This will combine everything vertically
ba=rand(5,1);
bc=rand(5,1);
bd=cat(1,ba,bc)
and this will combine them horizontally
ba=rand(5,1);
bc=rand(5,1);
bd=cat(2,ba,bc)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Whos에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!