---------------------</span>
0061 
0062 <span class="keyword">if</span>(mod(length(varargin),2) ~= 0)
0063     error([<span class="string">'incorrect usage of '</span>,subname,<span class="string">', use keyword pairs'</span>])
0064 <span class="keyword">end</span>;
0065 
0066 
0067 <span class="keyword">for</span> i=1:2:length(varargin)-1
0068     keyword  = lower(varargin{i});
0069     <span class="keyword">if</span>( ~ischar(keyword) )
0070         error([<span class="string">'incorrect usage of '</span>