Generating a unit impulse function

조회 수: 12 (최근 30일)
Mario
Mario 2013년 2월 5일
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개)

카테고리

Help CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by