matlab code from asf/amc to log file