gment(i).PA2G{1,num_essai}(:,(j-1)*3+1:j*3)/1000; <span class="comment">%#ok&lt;AGROW&gt;</span>
0071         <span class="keyword">for</span> k = 1:3
0072             Firstframe = max(Firstframe, find(~isnan(markers_pos{cpt}(:,k)),1,<span class="string">'first'</span>));
0073             Lastframe = min(Lastframe, find(~isnan(markers_pos{cpt}(:,k)),1,<span class="string">'last'</span>));
0074         <span class="keyword">end</span>
0075     <span class="keyword">end</span>
0076 <span class="keyword">end</