


PURPOSE: colfilt function to calculate deviation from min
returns the value of a gridcell minus the minimum value of its
neighbourhood (as definded by the calling function).
See also: colfilt()
Felix Hebeler, Geography Dept., University Zurich, July 2006.

0001 function [r] = extremity_min(X) 0002 % PURPOSE: colfilt function to calculate deviation from min 0003 % returns the value of a gridcell minus the minimum value of its 0004 % neighbourhood (as definded by the calling function). 0005 % 0006 % See also: colfilt() 0007 % 0008 % Felix Hebeler, Geography Dept., University Zurich, July 2006. 0009 0010 r=X(ceil(size(X,1)/2),:)-nanmin(X);