One row Multiple column data handling using for loop
조회 수: 1 (최근 30일)
이전 댓글 표시
Let,
a=1x10; % a=dataset with 1 row and 10 columns
b=1x15;
c=1x20;
... ... ...
... ... ...
How can I arrange all (a,b,c,...) one row and multiple column data in one variable (A) having one row and all columns (column of a data, column of b data...) using for loop or array or both as like below?
A=1x45; % 10+15+20
댓글 수: 0
채택된 답변
Voss
2022년 2월 26일
If you want A to have all elements of a, followed by all elements of b, followed by all elements of c, you can just concatenate a, b, and c:
A = [a b c];
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrices and Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!