  Fs = 1;
0066 <span class="keyword">elseif</span> (nargin == 2),  frame = 1;
0067 <span class="keyword">end</span>
0068 
0069 [M,N,P] = size(data);    T = (1:P)./Fs;    AVG = mean(data,3);
0070 <span class="keyword">if</span> (M*N &lt; surfimg_cutoff),  hires = 0;  <span class="keyword">else</span>  hires = 1;  <span class="keyword">end</span>;
0071 ROWpad = NaN*ones(1,N+1);    COLpad = NaN*ones(M,1);
0072 
0073 slow = 0;    skip = 1;   tslist = [];
0074 <span class="keyword">if</span> (frame&lt;1 || frame