Making and Plotting Arbitrary Variables
Posted: Wed Jun 27, 2012 10:34 am
Hello,
I am looking to plot the function:
gnabar*m*m*m*h
These variables are all available in a model file HH.mod. Am I able to create a variable in my main .hoc file (Neuron.hoc) similar to:
gna = gnabar_HH*m_hh*m_hh*m_hh*h_hh
and plot it using either code or the NEURON GUI?
Or is it necessary to define and assign the variable gna in HH.mod and reference it as gna_HH? I have had no success trying to create an arbitrary variable in my .hoc file and plot it. Trying to learn what I can and can't do in NEURON.
Thanks!
- Tyler
EDIT: I was able to implement the above calculation inside HH.mod and plot it. However, my real reason in wanting to plot a variable from Neuron.hoc is so that I can try summing the gna from all .mod files and plot the result. Therefore I hope someone can still recommend a way of doing so. Thanks again!
I am looking to plot the function:
gnabar*m*m*m*h
These variables are all available in a model file HH.mod. Am I able to create a variable in my main .hoc file (Neuron.hoc) similar to:
gna = gnabar_HH*m_hh*m_hh*m_hh*h_hh
and plot it using either code or the NEURON GUI?
Or is it necessary to define and assign the variable gna in HH.mod and reference it as gna_HH? I have had no success trying to create an arbitrary variable in my .hoc file and plot it. Trying to learn what I can and can't do in NEURON.
Thanks!
- Tyler
EDIT: I was able to implement the above calculation inside HH.mod and plot it. However, my real reason in wanting to plot a variable from Neuron.hoc is so that I can try summing the gna from all .mod files and plot the result. Therefore I hope someone can still recommend a way of doing so. Thanks again!