Matlab Set Function