
232 Appendix C: The SIMULINK Interactive Tutorial
The Mux block combines its inputs into a single output. An input can be a scalar,
vector, or matrix signal.
Demux
The Demux block extracts the components of an input signal and outputs the
components as separate signals.
Switch
The Switch block outputs the first (top) input or the third (bottom) input
depending on the value of the second (middle) input. The first and third inputs are
the data inputs. The second input is the control input.
From
The From block accepts a signal from a corresponding Goto block , and passes it
as output.
Goto
The Goto block passes its input to its corresponding From blocks. From and Goto
blocks allow us to pass a signal from one block to another without actually
connecting them.
C.3.8 Ports and Subsystems Library
This section is an introduction to the Ports and Subsystems Library of SIMULINK.
We will describe the function of some blocks included in this library (fig. C.18).