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:
- 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 个评论
回答(1 个)
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!