You can pass optional arguments conventionally:
mexfunc( 'myfunction', mandatory1, mandatory2, 'option1', value1, 'option2', value2 );
or now by passing a 'config structure' (like as for MATLAB optimizer settings):
config = struct;
config.option1 = value1;
config.option2 = value2;
mexfunc( 'myfunction', mandatory1, mandatory2, config );
(It still lacks a 'switch' to disable this 'extension')
You can pass optional arguments conventionally: mexfunc( 'myfunction', mandatory1, mandatory2, 'option1', value1, 'option2', value2 );
or now by passing a 'config structure' (like as for MATLAB optimizer settings): config = struct; config.option1 = value1; config.option2 = value2; mexfunc( 'myfunction', mandatory1, mandatory2, config );
(It still lacks a 'switch' to disable this 'extension')
Regards, Andreas