Update xstarmatrix_general.m