MATLAB: Getting the scope to show sum of time series output with respect to time

MATLABsimulink

Hi
I have a value that changes with respect to time due to arithmetic function. Instead of viewing the new output with respect to time, I would like to see the new output + sum of previous outputs with respect to time.
Please help me with this. I need to learn how to do this in simulink or if there is a block/function that I can use?

Best Answer

James, you could use the Cumulative Sum block. It is included in the DSP System Toolbox.