You are on page 1of 4

The Backbone Of The Backbone Of Yourself

Alfredo Vidal Arias Joan Sendra Garca


April 15, 2014

The Hodgkin - Huxley model is a mathe-


matical model that describes how action
potentials in neurons are initiated and
propagated. In this paper we solve the
set of non-linear differential equation
that approximates the electrical char-
acteristics of excitable cells such as
neurons using a numerical ode solver
called ode45.
The set of equations
We present the set of equations govern-
ing the model. We define the dynamic
variables
dn
dt
=
n
(u)(1 n)
n
(u)n
dm
dt
=
m
(u)(1 m)
m
(u)m
dh
dt
=
h
(u)(1 h)
h
(u)h
where

n
(u) =
0.01(10u)
e
10.1u
1

n
(u) = 0.125e
u/80

m
(u) =
0.1(25u)
e
2.50.1u
1

m
(u) = 4e
u/18

h
(u) = 0.07e
u/20

h
(u) =
1
1+e
30.1u
Then, the main equation to code is
dV
dt
= g
1
m
3
h(V V
1
)g
2
n
4
(V V
2
)g
3
(V V
3
)
where V is voltage expressed in mV and
t in ms, while g
1
, g
2
, g
3
and V
1
, V
2
,
V
3
are constants, and n, m and h are
dynamic variables defined before.
Numerical Solution
If we use the following values for the
parameters
g
1
= 120 g
2
= 36 g
3
= 0.3 ms
1
V
1
= 50 V
2
= 77 V
3
= 55 mV
and the code attached to this pa-
per, we can find the evolution of
V, n, h, and m as a function of the
time.
1
Matlab Code
We use two different files to solve the system. In the first m-file we define
the system of differential equations and in the second m-file we invoke the ode45
solver and we plot the results.
1 function xp=F(t,x)
2
3 %Defining constants
4 V1=50; V2=-77; V3=-55; % in mV
5 g1 =120; g2=36; g3 =0.3; % in ms^-1
6
7 %Defining u as a function of V:=x(1)
8 u = x(1) +65;
9
10 %Defining the time implicit dependent coefficients for the
dynamic set of equations
11 an = 0.01*(10 -u)./( exp (1 -.1*u) -1);
12 bn = 0.125* exp(-u/80);
13 am = .1*(25 -u)./( exp (2.5 -.1*u) -1);
14 bm = 4*exp(-u/18);
15 ah = 0.07* exp(-u/20);
16 bh = 1./(1+ exp (3 -.1*u));
17
18 %Initialize the variables array
19 xp = zeros (4,1);
20
21 %Defining the set of non -linear differential equation. x(1):=V, x
(2):=n, x(3):=m and x(4):=h
22 xp(1) = -g1*((x(3)).^3) .*(x(4)).*(x(1)-V1)-g2*((x(2)).^4) .*(x(1)-
V2)-g3*(x(1)-V3);
23 xp(2) = an.*(1-x(2))-bn.*x(2);
24 xp(3) = am.*(1-x(3))-bm.*x(3);
25 xp(4) = ah.*(1-x(4))-bh.*x(4);
26
27 end
2
0 2 4 6 8 10 12 14 16 18 20
80
70
60
50
40
30
20
10
0
t[ms]
V
[
m
V
]
5 10 15 20 25 30 35 40
0
0.1
0.2
0.3
0.4
0.5
0.6
t[ms]


n
m
h
References
[1] David M. Pozar, Microwave Engineering, Fourth Edition, John Wiley Sons, USA,
2012.
[2] Eric W. Weisstein, Bipolar Coordinates, From MathWorld. A Wolfram Web Re-
source.
[3] Gerald L. Pollack y Daniel R. Stump, Electromagnetism, Second Edition, Addi-
son Wesley, San Francisco, 2002.
3
[4] Michael Stone y Paul Goldbart, Mathematics for Physics. A Guided Tour for
Graduate Students, First Edition, Cambridge University Press, Cambridge,
2009.
4

You might also like