Question: what is nanmax in matlab?
Answer: For matrices X , nanmax(X) is a row vector of column maxima, once NaN values are removed. For multidimensional arrays X , nanmax operates along the first nonsingleton dimension. y = nanmax(X,[],dim) operates along the dimension dim of X . ... Each element of vecdim represents a dimension of the input array X .