フィルターのクリア

How can i add elements of the row at the end of the row?

3 ビュー (過去 30 日間)
Azime Beyza Ari
Azime Beyza Ari 2022 年 3 月 21 日
編集済み: Voss 2022 年 3 月 21 日
Hello everyone,
I m trying to expand my row vector and couldnt find any easy solution
Here is what i am trying to do:
I have a mtrix lets say this one
A = [1 2 3 4 ]
It should be like this;
A =[1 2 3 4 1 2 3 4 ]
I wanna add the same row back to back for 36 times. Any solution suggestions?

採用された回答

Voss
Voss 2022 年 3 月 21 日
編集済み: Voss 2022 年 3 月 21 日
A = [1 2 3 4];
A = repmat(A,1,36)
A = 1×144
1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4 1 2

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by