One row Multiple column data handling using for loop

4 ビュー (過去 30 日間)
Ariful Islam
Ariful Islam 2022 年 2 月 26 日
回答済み: Voss 2022 年 2 月 26 日
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

採用された回答

Voss
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 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by