Starting number of a base

The basics of how to develop, test, and use models.
Post Reply
scienbox
Posts: 4
Joined: Thu Dec 05, 2013 3:57 pm

Starting number of a base

Post by scienbox »

I like to confirm one thing I recently tested.

Should the number of a base start from [0], not [1]?
When I just used 'spine[1]' without using 'spine' or 'spine[0]', a following error was caused.
---
/Applications/NEURON-7.3/nrn/x86_64/bin/nrniv: subscript out of range spine
in test2.hoc
---

Is this right?
Thank you very much! :D

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

Re: Starting number of a base

Post by ted »

Indices start at 0, just as in C.
scienbox
Posts: 4
Joined: Thu Dec 05, 2013 3:57 pm

Re: Starting number of a base

Post by scienbox »

Okay. Thank you very much! :D
Post Reply