make a vector from one value

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 ...]

 采纳的回答

Bruno Luong
Bruno Luong 2020-7-21
编辑:Bruno Luong 2020-7-21
One way (among many)
x = 0.421 + zeros(1,1200)

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Loops and Conditional Statements 的更多信息

产品

标签

Community Treasure Hunt

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

Start Hunting!

Translated by