Integrate a signal over the last x seconds

조회 수: 6 (최근 30일)
Francesco Galuppo
Francesco Galuppo 2020년 12월 21일
댓글: Francesco Galuppo 2020년 12월 22일
Hi,
I hope you can give me a good track to solve this problem on Simulink
I need to integrate a signal over the last 30 seconds, continously, so that:
where t0 is the actual time and x are the seconds backwards.
V is therefore changing every second.
Thanks a lot!
Francesco

채택된 답변

Pat Gipper
Pat Gipper 2020년 12월 21일
Using a combination of an integrator, transport delay and summer where you subtract the value of the integrator output from 30 seconds prior from the current output might satisfy what you need.
  댓글 수: 1
Francesco Galuppo
Francesco Galuppo 2020년 12월 22일
Thanks a lot! The problem is fully solved with a variable time delay, where the second input is the clock output minus the x that I want.
I accepted your answer, thanks again
BR
Francesco

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

태그

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by