Home > timeplt > gmax.m

gmax

PURPOSE ^

function xnew=gmax(x)

SYNOPSIS ^

function xnew=gmax(x)

DESCRIPTION ^

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

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function xnew=gmax(x)
0002 %function xnew=gmax(x)
0003 % just like max, 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)=max(x(good,j));
0010        else
0011           xnew(j)=NaN;
0012        end
0013 end

Generated on Wed 30-Nov-2005 15:41:21 by m2html © 2003