General Purpose Scripts for MATLAB