60;n = length(inArray);</div><div class="line"><a name="l00466"></a><span class="lineno">  466</span>&#160;newArray = cell(n,1);</div><div class="line"><a name="l00467"></a><span class="lineno">  467</span>&#160;<span class="keywordflow">for</span> k=1:n</div><div class="line"><a name="l00468"></a><span class="lineno">  468</span>&#160;  color = inArray{k};</div><div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;  <span class="keywordflow">if</span> (ndims(color) == 3) &amp; isa(c