DIRECTIONSELECTIVITY4CELLDEMO_thresh-DemoofaN*Rinput,singlelayerdirection-selectiveoutputcellwithrisingthreshold[MODELEL,DI,R_UP,R_DOWN]=DIRECTIONSELECTIVITYNCELLDEMO_threshEnter"TYPE DIRECTIONSELECTIVITYNCELLDEMO_THRESH"toseethecode.Onecanmodifythedefaultparametersbypassingname/valuepairstothefunctionlikethisDefaultparametersareasfollows:----------------------------------------------------------------------dt(1e-4)|Stepsizeofmodellatency(0.200)|Latencyofbetweenrowslag(0.200)|LagofstimulusarrivalatdifferentpositionsN(2)|NumberofdifferentpositionsR(2)|Numberofdifferentlatenciesrandomness(0)|Coefficientofgaussianrandomnoisethatisaddedtolag,latency|Notethattherandomvalue,oncechosen,isusedconsistentlyeachtime|avisualstimulusispresented.Syn_Gmax_initial(1xN*R,4e-9)|Initialsynapticweight(about75% of threshold)plasticity_params([])|SynapseplasticityparamsforLGNtoEctxconnectionsplasticity_method('')|SynapseplasticitymethodforLGNtoEctxconnectionsisi(0.75)|Inter-stimulus-interval(seconds)plotit(1)|0/1shouldweplotthebehaviorinanewfigure?
simit(1)|0/1Actuallydosimulation(1)orjustbuildmodel(0)?
simup(1)|0/1Actuallysimulateupwarddirection(1)?
simdown(1)|0/1Actuallysimulatedownwarddirection(1)?
intfireparams|{'name1','value1'}parameterlisttopasstointfireleakyel_initsynapseparams|{'name1','value1'}parameterlisttopasstosynapset1t2el_init% synapseparams_ffI | {'name1','value1'} parameter list to pass to synapset1t2el_init for feedforward connections to I cell|defaultvalue{'V_rev',-0.080}V_threshold(-0.055)|Thresholdvalue(volts)slow(0)|Showstimulusathalfspeed?
mask(1)|Maskoutanyinputcells?
phase([1:N])|Orderinwhichtomovebartodifferentpositions(default1,2,3,etc)Outputs:MODELEListhemodelproducedbythefunction.DIis(R_UP-R_DOWN)/(R_UP+R_DOWN),notethisis-1to1R_UPisresponsetoupwarddirectionR_DOWNisresponsetodownwarddirectionExamples:% a totally non-direction-selective model[mel,di,rup,rdown]=directionselectivityNcelldemo_thresh;% a direction-selective model[mel,di,rup,rdown]=directionselectivityNcelldemo_thresh('Syn_Gmax_initial',[0550]*1e-9);% a 3 by 3 cell model[mod,di,r_up,r_down]=directionselectivityNcelldemo_thresh('N',3,'R',3,'isi',1);% a 10 position by 3 latency cell model:[mod,di,r_up,r_down]=directionselectivityNcelldemo_thresh('N',10,'R',3,'isi',3);Seealso:INTFIRELEAKY_SYNAPSEDEMO