mcdougallab / matlabneuroninterface

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

First working version of MATLAB-NEURON interface without Python #23

Closed edovanveen closed 1 year ago

edovanveen commented 1 year ago

This code is a first working version of the MATLAB-NEURON interface. It is the result of a collaboration between the McDougal lab, MathWorks and VORtech.

We opted to use clibgen and clib to connect MATLAB and NEURON, which works for MATLAB versions R2022a and up. For now, only Windows with the MinGW compiler is supported (closes #16); more work is needed to get the code working on linux (issue #17) and mac (issue #18).

This code uses NEURON 8 (closes #14), which still has some issues with error handling. These should be fixed in NEURON 9 (issue #15), but that version is currently still under development.

The interface uses dynamic objects, functions and variables where possible (closes #1) using dynamicprops. This means it asks NEURON which objects, functions and variables are available, and then creates MATLAB wrappers automatically.

Other relevant issues: