DIRECTIONSELECTIVITY4CELLDEMO_INHIB-Demoofa4input,singlelayerdirection-selectiveoutputcellwithFFinhibition[MODELEL,DI,R_UP,R_DOWN]=DIRECTIONSELECTIVITYNCELLDEMO_INHIBEnter"TYPE DIRECTIONSELECTIVITYNCELLDEMO_INHIB"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)Syn_Gmax_initial_inhib(1xN*R,|InitialsynapticweightofLGNtoIconnections(about75% of threshold)4e-9)|plasticity_params([])|SynapseplasticityparamsforLGNtoEctxconnectionsplasticity_method('')|SynapseplasticitymethodforLGNtoEctxconnectionsplasticity_params_inhib([])|SynapseplasticityparamsforItoEconnectionplasticity_method_inhib('')|SynapseplasticitymethodforItoEconnectionplasticity_params_ffinhib([])|SynapseplasticityparamsforfeedforwardLGNtoIconnectionplasticity_method_ffinhib('')|SynapseplasticitymethodforfeedforwardLGNtoIconnectionisi(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_initintfireparams_inhib|{'name1','value1'}parameterlisttopasstointfireleakyel_initsynapseparams|{'name1','value1'}parameterlisttopasstosynapset1t2el_initsynapseparams_ffI|{'name1','value1'}parameterlisttopasstosynapset1t2el_initforfeedforwardconnectionstoIcellsynapseparams_inhib|{'name1','value1'}parameterlistofvaluestopasstoinhibitorysynapse|defaultvalue{'V_rev',-0.080}ISyn_Gmax_initial|5.8e-9slow(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_inhib;% a direction-selective model[mel,di,rup,rdown]=directionselectivityNcelldemo_inhib('Syn_Gmax_initial',[0550]*1e-9);% a 3 by 3 cell model[mod,di,r_up,r_down]=directionselectivityNcelldemo_inhib('N',3,'R',3,'isi',1);% a 10 position by 3 latency cell model:[mod,di,r_up,r_down]=directionselectivityNcelldemo_inhib('N',10,'R',3,'isi',3);Seealso:INTFIRELEAKY_SYNAPSEDEMO