2||isempty(shifts); shifts=[0]; <span class="keyword">end</span>
0020 <span class="keyword">if</span> nargin&lt;3; nkeep=[]; <span class="keyword">end</span>
0021 <span class="keyword">if</span> nargin&lt;4; threshold=[]; <span class="keyword">end</span>
0022 <span class="keyword">if</span> nargin&lt;5; w=[]; <span class="keyword">end</span>
0023 
0024 <span class="keyword">if</span> isnumeric(x)
0025     [m,n,o]=size(x);
0026 <span class="keyword">else</span>
0027     [m,n]=size(x{1});
0028     o=length(x)