How do I create a vector by repeating a vector

Respuestas (1)

KSSV
KSSV el 28 de Jul. de 2021
Editada: KSSV el 28 de Jul. de 2021
A = [1; 2] ;
B = repmat(A,2,1)
B = 4×1
1 2 1 2

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 28 de Jul. de 2021

Comentada:

el 28 de Jul. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by