Sum of a signal in simulink
Mostra commenti meno recenti
In my Simulink model, current value of a signal should be added to all previous value of the same signal. I've used integrator with initial value of zero to find it; however the result is different from what I find in Matlab through "sum" or "trapz" function. The solver is continuous with fixed step size. Any thought to resolve this issue. or any other block to use for this purpose instead of integrator?
Risposta accettata
Più risposte (1)
Sean de Wolski
il 4 Ago 2015
0 voti
You could also use a unit delay:

1 Commento
Azzi Abdelmalek
il 4 Ago 2015
He is asking for all previous values. This will calculate out(n)+out(n-1)
Categorie
Scopri di più su Simulink in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!