open merged .mat file get components from date (Y M D H M) make datestring from components (convert date, select campbell format) export txt csv column headers only clear values assigned any flag flags ajacent to columns