Anything that doesn't fit elsewhere.
- Posts: 36
- Joined: Thu Nov 12, 2015 10:45 am
What does the $o1 mean in the following code? I know that $1 means the first variable of the function, but what does $o1 mean?
- Site Admin
- Posts: 5590
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
$o1 refers to the first argument to a function or procedure in hoc. The "o" tells hoc that this is an object reference. If the first argument were a scalar, it would have been called $1.
Time to read more about hoc syntax--that's in chapter 12 of The NEURON Book; if you don't have the book, see this preliminary version of chapter 12 https://www.neuron.yale.edu/ftp/ted/boo ... xedref.pdf