neuron to matlab convertion
Posted: Wed Oct 11, 2006 4:17 pm
Hi,
i have a program in neuron that simulates pyramidal neuron
i wanna convert neuron code to matlab code
i have accomplished the Ina,Ik,Im and Isynps currents.these algorithms works well,and tested with neuron datas,it is succesfull.
but the problem is I cannot calculate the Vm by using that equations;
Isnp=ge*(vm-Ee)+gi*(vm-Ei);
Ina=Gna*m*m*m*h*(vm-Ena);
Ikd=Gkd*n*n*n*n*(vm-Ek);
Im=Gm*mn*(vm-Ek);
vm=vm+dt*(-Gl*(vm-El)-Ina-Ikd-Im-(1/A)*Isnp);
I use euler algorithm as I have used it before for single compartment
HH model. but the euler method doesnt work here
my questions:
1-how neuron calculate vm and Itotal?,
2-is my vm calculation method true?
regards,
i have a program in neuron that simulates pyramidal neuron
i wanna convert neuron code to matlab code
i have accomplished the Ina,Ik,Im and Isynps currents.these algorithms works well,and tested with neuron datas,it is succesfull.
but the problem is I cannot calculate the Vm by using that equations;
Isnp=ge*(vm-Ee)+gi*(vm-Ei);
Ina=Gna*m*m*m*h*(vm-Ena);
Ikd=Gkd*n*n*n*n*(vm-Ek);
Im=Gm*mn*(vm-Ek);
vm=vm+dt*(-Gl*(vm-El)-Ina-Ikd-Im-(1/A)*Isnp);
I use euler algorithm as I have used it before for single compartment
HH model. but the euler method doesnt work here
my questions:
1-how neuron calculate vm and Itotal?,
2-is my vm calculation method true?
regards,