Watch this Author's files
Hi Yi, wouldn't this function produce all NaN if the median of either X or Y is zero? (since h would be zero)
Is there anyway to fix it? for example, if sigma is zero, then let sigma = max(X) - min(X)
Contact us at files@mathworks.com