Location: Hodgkin & Huxley (1952) model @ 4cfd719d6472 / BG / scripts_BG / HH_gate_n.m

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-03-18 16:52:23+13:00
Desc:
Expose states of gating
Permanent Source URI:
https://models.cellml.org/workspace/64f/rawfile/4cfd719d6472266926d77e1849c7add13b9de8e8/BG/scripts_BG/HH_gate_n.m

function [alpha_n,beta_n]=HH_gate_n(V,phi)

alpha_n = 0.01 .* (V + 10) .* phi ./ (exp( (V + 10) ./ 10) -1 );

beta_n = 0.125 .* exp( V ./ 80 ) .* phi;

TF = isnan(alpha_n); % handle /0;
alpha_n(TF)=0.1;
end