Updated version of sac2mat.m.