Compute cumulative sum of a singal for a certain period of time (moving sum)
    5 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Karthik  Vemireddy
 il 1 Mar 2016
  
    
    
    
    
    Commentato: Karthik  Vemireddy
 il 2 Mar 2016
            Hello,
I am trying to determine the cumulative sum of signal values over a period of time 't seconds' in a simulink model. After simulation start, for t seconds, the sum has to be cumulative and after t seconds, with each timestep, the oldest value has to be subtracted from the cumulative sum and the latest value has to be added.
Does anyone have a clever idea of implementing it? I have considered using delay blocks, but I have to use numerous blocks. Also considered Integrator and Cumulative sum blocks, but their reset the values set everything to zero and hence, don't fit the above requirement.
Thanks and Regards
Karthik
0 Commenti
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Linear Prediction in Help Center e File Exchange
			
	Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!