pop=randi([100],20,8);[r1,c1]=size(pop);for i=1:r1 A=randi(100); if A<=90 pool(i,:)=pop(i,:); endend
Hi
I want if the condition is not met, the pool variable does not take any value, in other words, in the end, for example, it becomes an 18×8 matrix, not an 20×8 matrix with 2 rows containing the value 0
Thank you for your guidance
Best Answer