### Calculate current flowing from one compartment to another

Posted:

**Fri Apr 06, 2012 2:54 pm**Hi,

I am working on a multi-compartment model and need to find out the magnitude of current flowing from one compartment to another. I am having nseg = 1 for now for all compartments. I am using the formula ((Vsoma(0.5)-Vdend[0](0.5))/((2Rasoma*Lsoma/(pi * Dsoma^2))+(2Radend*Ldend/(pi * Ddend^2))) to plot the current. Is there an easier way to calculate this in neuron. I need to do that for all the compartments and so wanted to know if neuron has some default function/parameter which does this..

Thanks

--Pranit

I am working on a multi-compartment model and need to find out the magnitude of current flowing from one compartment to another. I am having nseg = 1 for now for all compartments. I am using the formula ((Vsoma(0.5)-Vdend[0](0.5))/((2Rasoma*Lsoma/(pi * Dsoma^2))+(2Radend*Ldend/(pi * Ddend^2))) to plot the current. Is there an easier way to calculate this in neuron. I need to do that for all the compartments and so wanted to know if neuron has some default function/parameter which does this..

Thanks

--Pranit