I\'m not managing to compile a mex function while using the legacy_code tool from Matlab.
def = legacy_code(\'initialize\'); def.SFunctionName = \'sfun_ex_mySrc_L