We assume to have a quadratic approximation of a conductance-based neuron model, as in H.Rotstein (2015). Given the resulting membrane potential (v) and the course of the gating variable (w), this program estimates the synaptic current that the neuron is receiving at each time. Moreover, given the voltage traces for two different applied (steady) currents and the excitatory and inhibitory reversal potentials, the program estimates the excitatory and inhibitory conductances separately. Finally, the program gives the option of estimating the synaptic conductance. This conductance can be estimated in two different ways: (1) if only one voltage trace is given, the synaptic conductance is estimated using the synaptic reversal potential; (2) however, if two voltage traces are given (for two different applied currents), then the synaptic conductance can be either estimated using the synaptic reversal potential or the leak conductance.
Simulation Environment: MATLAB