Sample first input and hold its value based on value of second input
Control and Measurements/Additional Components
The Sample and Hold block outputs the
signal as long as
S input signal is true. The block
holds the output when the
S input signal becomes
Specify the initial value of the output.
Specify the sample time of the block, in seconds. Set to
implement a continuous block.
The control signal, which must be a Boolean.
The sampled signal.
|Sample Time||Specified in the Sample Time parameter|
shows the operation of the Sample and Hold block.
The model sample time is parameterized with the variable Ts (default value Ts = 50e-6). To simulate a continuous Bistable block, specify Ts = 0 in the MATLAB® Command Window.