added the  extract_subs_from_mat.m