kyamagu / mexplus

C++ Matlab MEX development kit.
Other
99 stars 49 forks source link

Enhancement for optional arguments #13

Closed a-ma72 closed 9 years ago

a-ma72 commented 9 years ago

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

kyamagu commented 9 years ago

@AndreasMartin72 Thanks, added a test and formatting fix