
mex -setup


def = legacy_code('initialize')
def.SFunctionName = 'S_function1'
def.OutputFcnSpec = 'double y1 = mySum(double u1, double u2)'
def.HeaderFiles = {'mySum.h'}
def.SourceFiles = {'main.c'}

legacy_code('sfcn_cmex_generate',def)

legacy_code('compile',def)

