MATLAB implmentation all in one place. scripts Folder contains the script to generate. Modularized