See the help of the file please. I wrote this 2 years ago, but it runs well with 2009A as tested. Feel free to post the bug you found.
Change the help session and renamed the factors for better understanding.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.