DIRECTIONSELECTIVITY4CELLDEMO-Demoofa4input,singlelayerdirection-selectiveoutputcell[MODELEL,DI,R_UP,R_DOWN]=DIRECTIONSELECTIVITY4CELLDEMOEnter"TYPE DIRECTIONSELECTIVITY4CELLDEMO"toseethecode.Inputcells:1-4Cells1and2areatposition1,cells3and4areatposition2.Cells1and3fireinstantly,whilecells2and4havealatency.Onecanmodifythedefaultparametersbypassingname/valuepairstothefunctionlikethis[MODELEL,DI,UP,DOWN]=DIRECTIONSELECTIVITY4CELLDEMO(PARAM1NAME,PARAM1VALUE,...)Defaultparametersareasfollows:----------------------------------------------------------------------dt(1e-4)|Stepsizeofmodellatency(0.200)|Latencyofbetweencell1,2and3,4lag(0.200)|Lagofstimulusarrivalbetweencell1,cell3Syn_Gmax_initial(1x4,4e-9)|Initialsynapticweight(about75% of threshold)plasticity_params([])|Synapseplasticityparamsplasticity_method('')|Synapseplasticitymethodisi(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_initOutputs:MODELEListhemodelproducedbythefunction.DIis(R_UP-R_DOWN)/(R_UP+R_DOWN),notethisis-1to1R_UPisresponsetoupwarddirectionR_DOWNisresponsetodownwarddirectionExamples:% a totally non-direction-selective model[mel,di,rup,rdown]=directionselectivity4celldemo;% a direction-selective model[mel,di,rup,rdown]=directionselectivity4celldemo('Syn_Gmax_initial',[0440]*1e-9);Seealso:INTFIRELEAKY_SYNAPSEDEMO