Borrar filtros
Borrar filtros

make a vector from one value

52 visualizaciones (últimos 30 días)
Lev Mihailov
Lev Mihailov el 21 de Jul. de 2020
Editada: Bruno Luong el 21 de Jul. de 2020
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
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 Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by