Notation

Anything that doesn't fit elsewhere.
Post Reply
maria.kesa
Posts: 36
Joined: Thu Nov 12, 2015 10:45 am

Notation

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

Hello,

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
}
Thanks!

Maria

ted
Site Admin
Posts: 5590
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Notation

Post by ted » Mon Dec 28, 2015 12:45 pm

$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

maria.kesa
Posts: 36
Joined: Thu Nov 12, 2015 10:45 am

Re: Notation

Post by maria.kesa » Tue Dec 29, 2015 4:48 am

Thank you, Ted!:-)

Post Reply