AHH's MATLAB tools