creating multiple values of the same x,y,z

1 visualización (últimos 30 días)
Eddy Ramirez
Eddy Ramirez el 8 de Nov. de 2020
Comentada: Eddy Ramirez el 8 de Nov. de 2020
Greetings,
I was wondering how I can create 100 values of the same input
x=[ 2, 4, 2]; %%% I need 100 of the same x, y, z

Respuesta aceptada

Rafael Hernandez-Walls
Rafael Hernandez-Walls el 8 de Nov. de 2020
x=[ 2, 4, 2];
repmat(x,10,1)

Más respuestas (1)

madhan ravi
madhan ravi el 8 de Nov. de 2020
doc repmat

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