matrix variable problem in matlab

1 Ansicht (letzte 30 Tage)
marwa hajji
marwa hajji am 3 Feb. 2022
Kommentiert: marwa hajji am 3 Feb. 2022
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

Akzeptierte Antwort

Ankit
Ankit am 3 Feb. 2022
Bearbeitet: Ankit am 3 Feb. 2022
read more about repmat
A = [1 2]';
A = repmat(A,6,1);

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by