How can I pass boolean parameters to my (handwritten) C S-function block?
2 views (last 30 days)
Show older comments
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 Comments
Answers (1)
See Also
Categories
Find more on Block and Blockset Authoring in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!