Home > omviz > gmin.m

gmin

PURPOSE ^

function xnew=gmix(x)

SYNOPSIS ^

function xnew=gmix(x)

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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

Generated on Thu 01-Dec-2005 08:50:35 by m2html © 2003