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...
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...
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,...
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...
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...
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 () numofsp...
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 oc...
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 ?