


function xnew=gmix(x) just like mix, except that it skips over bad points


0001 function xnew=gmix(x) 0002 %function xnew=gmix(x) 0003 % just like mix, except that it skips over bad points 0004 [imax,jmax]=size(x); 0005 0006 for j=1:jmax 0007 good=find(finite(x(:,j))); 0008 if length(good)>0 0009 xnew(j)=min(x(good,j)); 0010 else 0011 xnew(j)=NaN; 0012 end 0013 end