Use nargin/nargout on generated mex Functions
Afficher commentaires plus anciens
Hello,
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:
>>nargin(@sum)
>>nargout(@sum)
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?
Greetings, Stefan
1 commentaire
Stefan
le 19 Déc 2012
Réponses (1)
Mike Hosea
le 27 Mar 2014
0 votes
Not sure why this question slipped through unnoticed. I've created an enhancement request to make nargin and nargout work when given a function handle to a MATLAB Coder generated mex file.
Catégories
En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!