Matlab program for derived LAP data