How to integrate an expression inside simulink block between time t and t+T?
조회 수: 2 (최근 30일)
이전 댓글 표시
I wish to integrate a mathematical expression inside simulink block which looks something like this-
In order to calculate the definite integral whose bounds vary with every time step in simulink, I integrated the expression inside the integral ,i.e,
using the integrator block of simulink and then added a delay block with time step T. I subtracted the value of signal before and after delay block. I wanted to verify if my approach is right or wrong? Can any expert provide a real way to integrate the above expression. In my problem, the limits of the integration are varying at every time step of simulink environment ,i.e from t-T to t, where t is the time step of simulink environment and T is fixed(lets say T=0.5).
PS: in the integral, capital T is fixed and small t is the time step of the simulink environment. Q and R are fixed matrices of suitable dimension and all other signals namely, x,u are available to me via other simulink blocks.
Thanks for your time and efforts!
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!