nanmedian.m 84 Bytes
Newer Older
Jean-Luc Shaw's avatar
Jean-Luc Shaw committed
1
2
3
4
5
6
function out = nanmedian(in)

I   = find(isfinite(in)) ;
out = median(in(I)) ;

end