create a for loop that makes a new vector between 5 and 75, counts the number of elements %in vector "x” that fall in each range in matlab
main.m
% Creating a vector between 5 and 75 with a step of 5new_vec = 5:5:75;
% Creating an example vector "x"x = [1228456034219785016];
% Initializing the counts vectorcounts = zeros(1,length(new_vec));
% Looping through the new vectorfor ii = 1:length(new_vec)
% Counting the number of elements in "x" that fall in the current range counts(ii) = sum(x>=new_vec(ii) & x<new_vec(ii)+5);
end% Displaying the counts vectorcounts