Address 16 of the elements of ‘x’:
x = zeros(1,17); % this is my initial vector of zeros
x(1:16) = round(200 + (400-200).*rand(1,16)); % this is my generation of random numbers between 200 and 400
sx = sum(x); % this is my sum of my randomly generated numbers
