integral of indicator function
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!