VISUAL_STIM_ROW_CORRELATOR-ComputethenextvisualstimulusframeforagivencorrelatorNEXT_FRAME=vlt.neuro.vision.visual_stim_row_correlator(FRAME_DATA,CORRELATOR,SIGN)Givenaframeofvisualstimulusdatathatconsistsof-1's and 1s (FRAME_DATA), then a new frame (NEXT_FRAME) of -1'sand1siscreatedsuchthatthecorrelationbetweenthenewframeandtheoldframeisasdescribedinCORRELATOR(seebelow).Thealgorithmoperatesontherowsofthestimulus,sothatifthestimulusframehasmanyrows,eachrowwillbeoperatedonindependently.CORRELATOR:Anumberthatindicateswhichcorrelatortouse0:2-pointleftwardcorrelator1:2-pointrightwardcorrelator2:3-pointconvergingleftwardcorrelator3:3-pointconvergingrightwardcorrelator4:3-pointdivergingleftwardcorrelator5:3-pointdivergingrightwardcorrelatorSIGN:thesignofthecorrelator;shouldtheproductbe-1or1?Foragraphicaldepictionofthesecorrelators,seeClark,Fitzgerald,andAlesetal.,NatureNeuroscience2014(inparticular,SupplementaryFigure4)Example:Compute10framesforasinglerow,usingaleftward2-pointcorrelator(sign1)correlator=0;corelator_sign=1;row_data=[11-11-1-111];%madeupdatafori=1:10,row_data(i+1,:)=vlt.neuro.vision.visual_stim_row_correlator(row_data(i,:),correlator,correlator_sign);end;row_data,