I am currently facing the problem that I would like to apply the nargin/nargout function to a mex function I generated.
Usually one can use them in order get the number of inputs/outputs from outside the function. This works for example as follows:
When I use these functions on a generated mex function i get the following error:
>> Error using nargout
>> xyz_coder_mex does not know how to answer nargin/nargout.
Does anyone know a workaround or is it generally not possible to access these parameters of a mex function?