I have a masked subsystem which contains a S-Function. I want the user to enter the desired number of input ports for the S-Function through the mask.
MATLAB: Can the S-Function have variable number of inputs and outputs
dynamicinportinputoutportoutputportssimulink
Related Question
- How to implement a Level-2 M S-function with port based sample times
- How to change the port names of an S-Function block within the MATLAB File S-Function in Simulink 7.1 (R2008a)
- Do I lose port information when I make a copy of the S-function builder block in Simulink
- How to create custom integral blocks
- Define several functions in s-function builder
- How to create a Simulink model from the MATLAB command line
- Is there an example of dynamically sized input ports with different widths in a C-MEX S-function
Best Answer