Trying to store all the size of every array created by loop in matlab
===

I have a loop set up to create an array that changes the population of said array based on the number in the loop. I want to determine which iteration in the loop yields the maximum population. So far I have the program running for one iteration at a time but I can not run the loop 100 times and save each new size to a new array with all sizes and the iteration number in the corresponding row. I want it to read something like

for percent= 1:10
..
..
.. 
[one array_size percent] =size(array)

ans= 

1 4 1___1 7 2____1 2 3______1 7 4_____1 3 5_____ 1 9 6_____1 3 7______1 1 8______1 9 9 ______1 3 10

any format that can display basically the same data is okay I am just stuck, I thank you in advanced for the help

