MATLAB: Can i check the signals in a Bus

bus selectorbus-signalssimulink

I need to check if a specific signal is in the bus or not ?

Best Answer

One approach would be to create a bus object from the bus creator in your model that creates the bus using the function Simulink.Bus.createObject. You could then write a MATLAB function that looks to see if any of the bus elements match your specific signal name/type/size.
Related Question