matlab scripts for Arctic PhD work