Search found 9 matches

by kelvin
Thu May 31, 2007 2:36 am
Forum: OS X
Topic: Program editors for OS X
Replies: 7
Views: 8116

Xcode works too

I will add a plug for Xcode , because if you are running NEURON on a Mac you will likely have this installed. It is *free* and comes with the Development environment that you need to do important things like compile *.mod files using Mknrndll. You can find it by starting at the root disk: Macintosh ...
by kelvin
Thu May 31, 2007 2:20 am
Forum: Adding new mechanisms and functions to NEURON
Topic: Alternating current
Replies: 7
Views: 5570

Sinusoidal current injection

Dear Mr Magpie,

I'm not sure if you found a good solution to your need to generate AC inputs. If you are still looking for ideas you can check out my reply on another thread.

https://www.neuron.yale.edu/phpBB2/view ... highlight=

^^;;
by kelvin
Thu May 31, 2007 2:12 am
Forum: Other questions
Topic: sinusoid current
Replies: 12
Views: 11880

Sinusoidal current injection

Well, I'm not Ted but I figured I could answer this on his behalf. He will probably come along and tell you a more elegant way to do this. 1) Start a new text file in your editor of choice. Call it SinClamp.mod (a suggestion) 2) Copy the code below, paste it in to your file. Then save it and compile...
by kelvin
Wed Oct 11, 2006 10:34 pm
Forum: Getting started
Topic: neuron to matlab convertion
Replies: 2
Views: 5490

Matlab HH example

A couple of years ago I used a text for teaching physiological modeling to engineers, MODELING AND SIMULATION IN MEDICINE AND THE LIFE SCIENCES Second Edition FC Hoppensteadt and CS Peskin New York: Springer-Verlag, 2002 In Chapter 3 there is a very good description of the Hodgkin-Huxley model for s...
by kelvin
Wed Aug 30, 2006 12:51 am
Forum: Other questions
Topic: Find spike time
Replies: 6
Views: 6829

Answering my own question #2

2) How could I return the value of the last NetCon[id] so that I could change the numbers in the spkid vector to be more straight forward? Whoops... I noticed that there was another argument to netcon.record that solves this. In the for loop where the spike times are recorded just change one line t...
by kelvin
Wed Aug 30, 2006 12:43 am
Forum: Other questions
Topic: Find spike time
Replies: 6
Views: 6829

More spike times

I decided to try out Ted's advice using NetCon.record to create a vector of spike times. I decided to use the tutorial by Andrew Gillies and David Sterratt to play with this (since many newbies *should* have done this tutorial). Here is the hoc code with some changes. There are 4 subthalamic cells; ...
by kelvin
Fri Feb 17, 2006 9:08 pm
Forum: The GUI
Topic: Handle graphics
Replies: 1
Views: 5227

Handle graphics

https://www.neuron.yale.edu/phpBB2/viewtopic.php?t=293 On that topic thread above I learned that in NEURON (or I guess more correctly InterViews) as in Matlab there are ways of peeking into the low level objects that make up a graphic. In Matlab they call this "handle graphics", and for all I know ...
by kelvin
Fri Feb 17, 2006 9:22 am
Forum: Getting started
Topic: space plot!
Replies: 4
Views: 5840

syntax solved

Thanks Ted, and your welcome for the blast of arctic from up North. I have been trying to use the GUI as much as possible and forgot my hoc syntax. I learned something else from your original reply to the first post that I would like to explore more. It has to do with exploring from the command prom...
by kelvin
Thu Feb 16, 2006 1:52 am
Forum: Getting started
Topic: space plot!
Replies: 4
Views: 5840

syntax for printf?

Hmmm... I'm getting rusty. 1. Started up neurondemo, chose pyramidal as example 2. Create SectionList objref pyrseclst pyrseclst = new SectionList() forall pyrseclst.append() 3. Use Ted's code for creating a vector for one node of every section in the model. objref veclist, tempvec veclist = new Lis...