필터 지우기
필터 지우기

How to make a summation using heaviside function?

조회 수: 1 (최근 30일)
ZC Song
ZC Song 2019년 4월 30일
편집: ZC Song 2019년 4월 30일
Hi, May I ask how to make a summation using heaviside function?
Here is my code:
t = 0;
i_q = -[0.01 0.04 0.02 0.06 0.06]; % Rainfall intensity
T_q = [100 400 1000 1300 1500]; % Duration
n = length(i_q);
syms n k
q_aux = @(t)(i_q(k).*(heaviside(t-T_q(k-1))-heaviside(t-T_q(k)))); %%%% k>1
q = symsum(q_aux,k,2,n)+ @(t) (i_q(1).*(heaviside(t)-heaviside(t-T_q(1))));
Now the code is not working, Could you please tell me how to fix it?
Thank you very much!

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by