mcdougallab / matlabneuroninterface

Interface for connecting NEURON and MATLAB
BSD 3-Clause "New" or "Revised" License
5 stars 1 forks source link

need POINTER assignment #97

Open ramcdougal opened 10 months ago

ramcdougal commented 10 months ago

MOD files can have a POINTER variable which needs to be set to refer to some memory location... this may be used for a gap junction, for example, where in order to compute the current across the gap junction via Ohm's law, the MOD file must know both the membrane potential locally and the membrane potential at the corresponding point of the other cell.

In HOC, this could be done using setpointer and a differently syntaxed h.setpointer exists for Python, although today in Python one can simply assign a pointer to the POINTER variable, e.g.

gap.vgap = axon(0.5)._ref_v

See gap.mod for an example of such a MOD file.

We need to be able to set pointers in MATLAB.