Hodgkin&Huxley Model in MATLAB and Simulink.
It is a first model of a cell. Huxley and Hodgkin took giant axon from a squid and they have explained ion channels mechanism.

Assuming cell as an electrical system before a biological is the fundamental part of modelling the cell membrane.

Figure. Circuit representation
Hodgkin and Huxley are found and formulated this model after series of voltage clamp experiments by altering sodium and potassium concentrations.
Leakage Current:
Variables: m, n, h: State variables
g: Channel conductivity
α, β : Rate coefficients
C_m : Membrane capacitance
I: Input current
V: Membrane potential
I_m : Membrane current
V_Na : Sodium equilibrium potential
V_K : Potassium equilibrium potential
V_L : Leakage equilibrium potential
Model:

Output:
