Accessing neuron variables in MATLAB
Posted: Sat Dec 29, 2012 11:26 pm
Hi,
I wanted to run a neuron simulation from MATLAB, which I did with the command "!nrngui <file.hoc>". Later I wanted to calculate spikes with APCount procedure in NEURON and return it to MATLAB variable for further computation. One way is to create file, store value into it and open it in MATLAB. Since this needs extra file operations, is there any other way I can access the spike count in MATLAB directly from NEURON (like assigning to a local variable in MATLAB).
Thank you.
I wanted to run a neuron simulation from MATLAB, which I did with the command "!nrngui <file.hoc>". Later I wanted to calculate spikes with APCount procedure in NEURON and return it to MATLAB variable for further computation. One way is to create file, store value into it and open it in MATLAB. Since this needs extra file operations, is there any other way I can access the spike count in MATLAB directly from NEURON (like assigning to a local variable in MATLAB).
Thank you.