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
Starting number of a base
-
- Site Admin
- Posts: 6300
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Starting number of a base
Indices start at 0, just as in C.
Re: Starting number of a base
Okay. Thank you very much! :D