Downloading SciLab
volts=lifNeurons(duration, numNeurons) | Returns voltage every 1ms over duration seconds for numNeurons simulated neurons given 100mV of input |
volts=lifNeurons(durations, numNeurons, opts) | Same as above, but opts variable alters simulation details |
opts.input | mV input to each neuron over time |
opts.wts | weight matrix among neurons (matrix of 0s by default)) |
opts.Vreset | resting state voltage in mV (-70mv by default) |
opts.Vthresh | point (in mV) at which voltage is reset (10 mV by default) |
opts.tau | tau for neurons' voltage change (dv/dt) |
opts.tau2 | tau for effects pre-synaptic spike on post-synaptic input voltage |
opts.dt | time step of simulation (.001 s/1 ms by default) |