matrix variable problem in matlab

5 vues (au cours des 30 derniers jours)
marwa hajji
marwa hajji le 3 Fév 2022
Commenté : marwa hajji le 3 Fév 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

Réponse acceptée

Ankit
Ankit le 3 Fév 2022
Modifié(e) : Ankit le 3 Fév 2022
read more about repmat
A = [1 2]';
A = repmat(A,6,1);

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by