matrix variable problem in matlab

2 次查看(过去 30 天)
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
read more about repmat
A = [1 2]';
A = repmat(A,6,1);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Types 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by