I'm trying to output action potential numbers with a series of current injection with different amplitude. Currently I'm using APCount to output the number if spikes as below.
Code: Select all
objref apc
apc = new APCount(0.5)
apc.thresh = -12
for i = 0, 20 {
stim.amp = 0.1*i
run()
reci.append(stim.amp)
recn.append(apc.n)}
I was thinking maybe I need to create another vector and record the value of voltage, and use apc.record to extract the time when the voltage cross the threshold in the positive directions, and then find max and min of voltage vector between the range of one and the next threshold-crossing time window.
Does anybody have any advice on how to do this?
I appreciate your input.
Best,
Yang