I use an S-function parameter to control the number of input and output ports displayed by my S-function block. If I specify a value for the parameter that reduces the number of S-function block output ports, Simulink always removes ports from the end of the block. However, the S-function block ports that Simulink removes were once connected to other blocks. This situation forces me to rewire much of my model. Instead, I want to be able to remove specific S-function block ports while keeping all other ports intact.
MATLAB: How to add or remove specific S-function block ports in Simulink 6.5 (R2006b)
deleteorderingportportssimulink
Related Question
- Do I lose port information when I make a copy of the S-function builder block in Simulink
- Can the Model Reference block become a linked library block in Simulink
- How to display port names in S-Function block just like they show up for Simulink subsystems
- Does the time taken to add blocks increase rapidly with the number of blocks added when adding Inport and Outport blocks to a Simulink model from the MATLAB Command Prompt in Simulink 7.3 (R2009a)
- How to change the port names of an S-Function block within the MATLAB File S-Function in Simulink 7.1 (R2008a)
Best Answer