Page 1 of 1
Plotting dv/dt against t
Posted: Sun Jun 01, 2008 1:33 am
by Bill Connelly
Hi,
I have a feeling I am being unusually stupid here; but I'm trying to figure out a way to plot dv/dt versus t. A way to do this through the GUI would be especially appreciated; but other ways would be great too.
Thanks,
Posted: Sun Jun 01, 2008 11:34 am
by ted
This is where i_cap is useful. Read about it here:
http://www.neuron.yale.edu/neuron/stati ... apacitance
Since i_cap is in mA/cm2, dV/dt in mV/ms = i_cap/cm/1000
A way to do this through the GUI would be especially appreciated
See
Setting up graphs by writing code patterned after stdrun.hoc
https://www.neuron.yale.edu/phpBB2/viewtopic.php?t=686
Alternatively, for maximum control over the position and appearance of a graph, use the GUI
to create the plot, then save the graph to a ses file, and mine the ses file for reusable code.
See
How to use hoc to plot a variable vs. time
https://www.neuron.yale.edu/phpBB2/viewtopic.php?t=552
Posted: Sun Jun 01, 2008 7:03 pm
by Bill Connelly
Thanks very much Ted. Just in case this post is found again, and someone can't figure out why i_cap/cm/1000 = dV/dt (as i couldn't for about 5 minutes).
i_cap = mA/cm2
cm*1000 = mF/cm2
mF = mA . s/V
Therefore...
cm*1000 = mA. s/V.cm2
i_cap/cm/1000 = mA/cm2 / mA.s/V.cm2
= mA.V.cm2 / cm2.mA.s
= V/s