How can I pass boolean parameters to my (handwritten) C S-function block?

4 views (last 30 days)
Hello,
I'm writing a C-mex S-Function and I would like to use boolean parameters:
  1. how do I check that the user did actually enter a boolean? I'm looking for a function similar to mxIsNumeric but for booleans.
  2. 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!

Answers (1)

Saad Zaman
Saad Zaman on 23 Aug 2019
I have a similar question

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!