Skip to content
Prev 326352 / 398503 Next

R and MatLab implementations of the same model differs

On 04-07-2013, at 19:56, peter dalgaard <pdalgd at gmail.com> wrote:

            
Same NA results here. Making parms a named vector makes no difference but is is certainly necessary to do that.

In that case there is probably an inconsistency in the file simulate.m near the end:
The last non empty line before the line out = ?  reads

iLeak_axon = gLeak_axon_AB.*(v_axon_AB-ELeak_axon_AB);

and this doesn't agree with the line

iLeak_axon = ELeak_axon_AB*(v_axon_AB-ELeak_axon_AB);

in the function xdot.

Final question for the OP: if the model is supposed to be dynamic, isn't it suspicious that Matlab gives a constant result?

Berend