function m = nanmedian1(x)
%NANMEDIAN Median value, ignoring NaNs.

m=median(x(~isnan(x)));

