Some housekeeping in matlab code generation.