MATLAB: Do Level-1 MATLAB S-Functions support bus inputs

simulink

Do Level-1 MATLAB S-Functions support bus inputs?

Best Answer

Neither Level-1 nor Level-2 MATLAB S-Functions support bus inputs. The workarounds are
(a) Concatenate the multiple inputs into an array if they are of the same data type
(b) Use multiple input arguments (in the case of a Level-2 S-Function)
If using a Level-1 S-Function, it is highly recommended that it be upgraded to a Level-2 S-Function.