make a vector from one value

76 次查看(过去 30 天)
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 个)

类别

Help CenterFile 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