Page 1 of 1

Insert Mechanisms in Matlab

Posted: Mon Jul 18, 2022 11:21 am
by chrysatbr
Hi everyone,

I'm a new user of Neuron and I try to expand a model with some mechanisms from senselab. I want to insert these in MATLAB but I cannot understand how can I turn on/off a mechanism.

Re: Insert Mechanisms in Matlab

Posted: Mon Jul 18, 2022 4:59 pm
by ted
Most mechanisms used in NEURON are specified by code written in NMODL. To use them with NEURON it is necessary to compile the NMODL code with mknrndll (if you're using MSWin) or nrnivmodl (if you're using Linux or MacOS). If you then launch NEURON in the same directory where you compiled the NMODL file(s), NEURON will automatically read the file that contains the compiled code and make it available to whatever hoc or python-specified model that you are using.

MATLAB can't use NMODL code or the binary file generated by compiling NMODL code.