creating multiple values of the same x,y,z

1 Ansicht (letzte 30 Tage)
Eddy Ramirez
Eddy Ramirez am 8 Nov. 2020
Kommentiert: Eddy Ramirez am 8 Nov. 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

Akzeptierte Antwort

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

Weitere Antworten (1)

madhan ravi
madhan ravi am 8 Nov. 2020
doc repmat

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by