How do you sum a signal in Simulink?

1 view (last 30 days)
I would like to sum all the data points of a signal over the simulation time without having to export to MATLAB. For example, if simulation time is 5 seconds, and data is 1,2,3,4,5 with a step-size of 1, the sum should be 15.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 8 Jun 2022

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by