I am trying to implement Izhikevich's simple spiking neuron model which is given by
V'(t) = 0.04 V^2+5V+140-u+I
u'(t) = a(bv-u)
if V=30 mV then V=c, u=u+d
I am using a=0.02, b=0.2, c=-65, d=8
I can solve the coupled equations using NDSolve with the initial conditions of V and u, which gives me the interpolating functions for V(t) and u(t) and then I can plot them within a time window. But my problem is implementing the "If" condition within the boundary condition of NDSolve. Could someone please help me to figure out how to implement that If condition within NDSolve? Another problem is, how to then apply the resulting spiking neuron signals to a system? For example, in Simulink we can simply connect a signal source to a system. Let's say here I find the transfer function of my system where I want to apply the spiking neuron as the input. Typically I we use Outputresponse in mathematica to get output of the system against a standard signal input. But in this case, is there a way to use a similar method to get the system's response with the derived spiking neuron train as input? Thanks
V
andu
. Isbv
a product? If so, isv
supposed to beV[t]
. IsI
an undefined constant or is itSqrt[-1]
$\endgroup$