Search found 10 matches

by MSN
Tue Jun 28, 2011 12:10 pm
Forum: Getting started
Topic: NetStim seed
Replies: 2
Views: 2364

Re: NetStim seed

I did it using:

Code: Select all

objref r, pc
pc = new ParallelContext()
r = new Random(pc.time())
r.uniform(0,10)
by MSN
Mon Jun 27, 2011 6:55 pm
Forum: Getting started
Topic: NetStim seed
Replies: 2
Views: 2364

NetStim seed

Dear TED In the following code, I am using the seed function and the argument to the seed function is a random number. load_file("nrngui.hoc") load_file("network of layers.ses") n=15 objref syne[n], nse[n], nce[n], r r = new Random() proc layer () { for j=0, n-1 { v=int(r.uniform(50, 100)) M_Cell[j]...
by MSN
Tue Jun 21, 2011 10:36 am
Forum: Getting started
Topic: 3D Plot
Replies: 3
Views: 2173

Re: 3D Plot

I did it comforably with Matlab, using ''surf'' function.

surf(weight_vector, frequency_vector, matrix)

and thanks ted for your advise.

Regards
by MSN
Fri Jun 17, 2011 3:12 pm
Forum: Getting started
Topic: 3D Plot
Replies: 3
Views: 2173

3D Plot

Dear TED i am analyzing the behavior of standard HH neuron against various paramters of the poisson process. I used a NetStim source and connect it with an exponential synapse at soma using NetCon. First, i changed the frequency of the NetStim (from 10Hz to 500Hz, 50 steps) and got a vector of spike...
by MSN
Wed Jun 15, 2011 5:12 pm
Forum: The GUI
Topic: spike frequency vs current graph
Replies: 16
Views: 19405

Re: spike frequency vs current graph

nice suggestion, now the code is looking organized and is efficent . here it is load_file("nrngui.hoc") load_file("constant_source freq.ses") // processing // proc batchrun () { local j for j=0, 200 { IClamp[0].amp = j*0.01 run () postprocess() } } // postprocessing // objref nc, nil, indx, numofspi...
by MSN
Wed Jun 15, 2011 8:07 am
Forum: The GUI
Topic: spike frequency vs current graph
Replies: 16
Views: 19405

Re: spike frequency vs current graph

I discover my mistake. wow, it was so easy. I think, if it is explicitly mentioned in the help (http://www.neuron.yale.edu/neuron/static/docs/help/neuron/neuron/classes/netcon.html#record) that the resultant indexes will be saved in the vector (which is given in the argument) then it might be easier...
by MSN
Tue Jun 14, 2011 5:41 pm
Forum: The GUI
Topic: spike frequency vs current graph
Replies: 16
Views: 19405

Re: spike frequency vs current graph

you are right. it made following changes to the code: if (mvec[k].x[m]*mvec[k].x[m+1] <= 0) { indx[k].append(m) } so it will not miss if the datum is 0 and numofspikes.append(int(indx[k].size()/2)) /* number of spike which are above the x-axis */ so this will cancel the effect of double count. I als...
by MSN
Mon Jun 13, 2011 4:36 pm
Forum: The GUI
Topic: spike frequency vs current graph
Replies: 16
Views: 19405

Re: spike frequency vs current graph

I just finished the task and here is the code i wrote. Kindly have a look. May the way i did is not efficient but i got the graph. load_file("nrngui.hoc") load_file("constant_source freq.ses") objref avec, mvec[21], indx[21], numofspikes, num, fvec, g avec = new Vector () numofspikes = new Vector ()...
by MSN
Mon Jun 06, 2011 1:54 pm
Forum: The GUI
Topic: spike frequency vs current graph
Replies: 16
Views: 19405

Re: spike frequency vs current graph

dear Ted i think i did not explain my query clearly. i again tried to solve the problem but remain unsucessful. Here i explain it in more detail. Here is my session file. (i develop it using gui) {load_file("nrngui.hoc")} objectvar save_window_, rvp_ objectvar scene_vector_[5] objectvar ocbox_, ocbo...
by MSN
Fri Jun 03, 2011 4:49 pm
Forum: The GUI
Topic: spike frequency vs current graph
Replies: 16
Views: 19405

spike frequency vs current graph

Dear Seniors

I am a new user of Neuron.
I use a HH neuron and inject constant current into the dendrite (using GUI). For different values of current there is different spike frequency.
Now I want to plot the spike frequency vs current graph.
Can anybody help me, how can I plot it ?

Regards