Page 1 of 1


Posted: Mon Dec 28, 2015 9:23 am
by maria.kesa

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?

Code: Select all

proc init() {
		netstimA = $o1


Re: Notation

Posted: Mon Dec 28, 2015 12:45 pm
by ted
$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 ... xedref.pdf

Re: Notation

Posted: Tue Dec 29, 2015 4:48 am
by maria.kesa
Thank you, Ted!:-)