MATLAB: Make a vector from one value

MATLABvector

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

Best Answer

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