Matlab utility program design example