Matlab functions, scripts and documentation