integral of indicator function

조회 수: 4 (최근 30일)
esra kan
esra kan 2021년 9월 7일
편집: esra kan 2021년 9월 7일
Hello,
I need to write matlab code for below integral. I know how to write it in discrete time but couldn't write it in integral form. Do i mutlipy the discrete form with ds and then apply the cumsum? If you help me, I appreciate it. By the way, 1_{Xs=ai} is a indicator function which is 1 when Xs=ai, otherwise 0.
Thanks in advance.
X_t=(0,1,0,1,2,1,0,...)
a_i=(0,1,2)
Y_t=int_0^t(1_{Xs=ai}ds)

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by