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

1 vue (au cours des 30 derniers jours)
Louis
Louis le 16 Avr 2014
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!

Réponses (1)

Saad Zaman
Saad Zaman le 23 Août 2019
I have a similar question

Catégories

En savoir plus sur Block and Blockset Authoring dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by