-
Notifications
You must be signed in to change notification settings - Fork 3
/
FHN.m
32 lines (29 loc) · 795 Bytes
/
FHN.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
%% Fitz-Hugh Nagumo model.
%
% ARGUMENTS:
% x -- Previous state of the slow variable.
% y -- Previous state of the fast variable.
% P -- A structure containing the parameter definitions.
%
% OUTPUT:
% Fx -- <description>
% Fy -- <description>
%
% REQUIRES:
% none
%
% USAGE:
%{
%As called from within FHN_heun.m
[Fx0 Fy0] = FHN(x,y,options.Dynamics);
%}
%
% MODIFICATION HISTORY:
% SAK(24-11-2009) -- Original.
% SAK(Nov 2013) -- Move to git, future modification history is
% there...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [Fx Fy] = FHN(x,y,P)
Fx = P.d * P.tau*(y + x - x.^3/3.0);
Fy = P.d * (P.a - x - P.b*y)./P.tau;
end % function FHN()