matrix variable problem in matlab

5 visualizaciones (últimos 30 días)
marwa hajji
marwa hajji el 3 de Feb. de 2022
Comentada: marwa hajji el 3 de Feb. de 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

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by