MATLAB: How to use the Running Sum (Cumulative Sum) block with a continuous sample time signal

continuousconversionconvertcumulativediscretediscretizeDSP System Toolboxhybridrunningsignalsum

How can I use the Running Sum (Cumulative Sum) block with a continuous sample time signal?

Best Answer

This block expects a signal with discrete sample time as input. Hence, a continuous signal would need to be discretized before it can be connected to this block.
A continuous signal can be discretized with a desired sampling rate by using either a Zero Order Hold or First Order Hold block. The sampling rate of the resulting discrete signal can be adjusted using the Sample time parameter of the block.
Related Question