Plotting dv/dt against t

The basics of how to develop, test, and use models.
Post Reply
Bill Connelly
Posts: 86
Joined: Thu May 22, 2008 11:54 pm
Location: Australian National University

Plotting dv/dt against t

Post 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,
ted
Site Admin
Posts: 6305
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post 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
Bill Connelly
Posts: 86
Joined: Thu May 22, 2008 11:54 pm
Location: Australian National University

Post 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
Post Reply