MATLAB: How to make a variable as equal input over 30 sections

matlab codesrepeat a variable

f = 100;
z = 0.5 ;% how to make it as equal inputs over 30 sections
b = 2; c = 4;
Y = f*b*c*z;
disp(Y);

Best Answer

f = 100;
z = 0.5*ones(1,30)
b = 2;
c = 4;
Y = f*b*c*z;
disp(Y);