link sm_matlab to matlab