Switch N inputs to one output signal based on event pulses
[sim, out] = ld_TrigSwitch1toN(sim, events, Event, SwitchInputList, InitialState)
Event * - vector signal
SwitchInputList list() of * with N elements
out * - is set to the input if SwitchInputList(state), whereby "state" is the current state that can be changed
giving inpulses to Event, whose intensity correspond to the state to switch to. Event <0.5 does not change
the state.