You can get the MATLAB files in this directory or get the required ones using the links below.
To compare standard HKM direction with simplified/improved HKM direction e.g. use the matlab code:
n2; and n20;
You can execute the above files using: runn2; and runn20;