How can I pass boolean parameters to my (handwritten) C S-function block?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'm writing a C-mex S-Function and I would like to use boolean parameters:
- how do I check that the user did actually enter a boolean? I'm looking for a function similar to mxIsNumeric but for booleans.
- how do I get the actual boolean value of the parameter? I would like to write something similar to mxGetPr(ssGetSFcnParam(S, PARAMETER_INDEX))
Thanks for your help!
0 commentaires
Réponses (1)
Voir également
Catégories
En savoir plus sur Block and Blockset Authoring dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!