Writing S-Functions    

Creating Output Ports

To create and configure output ports, the mdlInitializeSizes method should first specify the number of input ports that the S-function has, using ssSetNumOutputPorts. Then, for each output port, the method should specify:


  Creating Input and Output Ports Scalar Expansion of Inputs