I used the command 'mex my_contoller.c' to transform ''my_controller.c'' file into ''my_controller.mexw64'' file. And then I created a s-function block which has a name 'my_controller' in simulink. But the input and output data type are double by default, how can I make them boolean ? Because in my c code I define those variables as boolean not double.
MATLAB: How to make the data type of inputs and outputs of s-function block in simulink not double
MATLABmexmex compilers-function
Best Answer