Matlab code of work done at IISc.