I'm performing a number of operations inside of a for loop. All the operations are being performed with the exception of the last loop.
e.g if I have within a loop something like this
unmated=find(fem(:,3,t)==0) fem(:,8,t)=fem(:,1,t); %replacing fem(unmated,8,t)=0;
....more code... end
the operations are only performed for the first 3 loops but not for the last one.