I have A=[1 2]' I would like to display it in repetitive form as A=[1 2 1 2 1 2 1 2 1 2 1 2]' using loop structure, any help please

 採用された回答

Ankit
Ankit 2022 年 2 月 3 日
編集済み: Ankit 2022 年 2 月 3 日

0 投票

read more about repmat
A = [1 2]';
A = repmat(A,6,1);

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

質問済み:

2022 年 2 月 3 日

コメント済み:

2022 年 2 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by