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

3 次查看(过去 30 天)
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!

回答(1 个)

Saad Zaman
Saad Zaman 2019-8-23
I have a similar question

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by