Generating a unit impulse function
조회 수: 12 (최근 30일)
이전 댓글 표시
Hey all,
I have a function which:
function xprime=nagumo(t,x,i);
a=i(1); %CONTROL LOCATION AT WHICH PULSE OCCURS
b=i(2);
xprime=[x(1)-(1/3)*(x(1))^3-x(2)+***INSERT UNIT IMPULSE***;0.08*(x(1)+0.7-0.8*x(2))];
I need to use this nagumo function with ode45 in the form:
[t,x]=ode45(@nagumo,tspan,x0,[],i);
I need the unit impulse to be a signal as a time series with at least two time samples as being 1, and the rest of the samples being zero. Which is basically a rectangular pulse, occuring only once at the t i specify for the duration I specify. The height of the pulse is 1.
Thanks
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!