hello! I have values ​​0.421, I need to make a vector of 1200 values ​​of the same from it without a loop
% I need to do without a loop x=[​​0.421 ​​0.421 ​​0.421 ​​0.421 ...]

 Respuesta aceptada

Bruno Luong
Bruno Luong el 21 de Jul. de 2020
Editada: Bruno Luong el 21 de Jul. de 2020

0 votos

One way (among many)
x = 0.421 + zeros(1,1200)

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 21 de Jul. de 2020

Editada:

el 21 de Jul. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by