make a vector from one value
52 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 ...]
0 comentarios
Respuesta aceptada
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)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Loops and Conditional Statements en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!