Fields = fieldnames(s);
0040 nFields = length(sFields);
0041 
0042 <span class="comment">%loop through, comparing each field in s with all of the range interface</span>
0043 <span class="comment">%fields. Remove invalid fields</span>
0044 
0045 rmChk = false(nFields,1);
0046 <span class="keyword">for</span> n = 1:nFields
0047     rmChk(n) = ~any(strcmp(sFields{n},rangeFields));
0048     <span class="keyword">if</span> rmChk(n)
0049         warning(<span class="string">'%s is not a valid field for the Range 