I created a for loop that was meant to show me how many times a number showed up in an array like so:
for i=1:n length(find(yy(1:numel(yy),1)==i))end
It worked but it did so in a way that gave me eac number's answer one at a time in my command window like so:
ans= 7ans= 2
and so on.
How do I code it so that I create a speadsheet that tells me the answer from 1 all the way to the last number?
Best Answer