How do I create a vector by repeating a vector

Réponses (1)

KSSV
KSSV le 28 Juil 2021
Modifié(e) : KSSV le 28 Juil 2021
A = [1; 2] ;
B = repmat(A,2,1)
B = 4×1
1 2 1 2

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Tags

Question posée :

le 28 Juil 2021

Commenté :

le 28 Juil 2021

Community Treasure Hunt

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

Start Hunting!

Translated by