integral of indicator function

1 次查看(过去 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 中查找有关 Oil, Gas & Petrochemical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by