What Is Sample Time?
The sample time of a block is a parameter that indicates
when, during simulation, the block produces outputs and if
appropriate, updates its internal state. The internal state
includes but is not limited to continuous and discrete states that
are logged.
Note Do not confuse the Simulink usage of the term sample
time with the engineering sense of the term. In engineering, sample
time refers to the rate at which a discrete system samples its
inputs. Simulink allows you to model single-rate and multirate
discrete systems and hybrid continuous-discrete systems through the
appropriate setting of block sample times that control the rate of
block execution (calculations).
For many engineering applications, you need to control the rate
of block execution. In general, Simulink provides this capability
by al