matrix variable problem in matlab

2 visualizzazioni (ultimi 30 giorni)
marwa hajji
marwa hajji il 3 Feb 2022
Commentato: marwa hajji il 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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by