%Function for projecting red and magenta mobile stimulus function redmagentasector2(sectors,time) close all force fig=figure; axis off axes('Position', [0 0 1 1]) xlim([-.1 .1]) ylim([-.1 .1]) set(fig,'Position',[0 0 1080 1080]) t=0; % timeLimit=180; timestep=0.03; direction=1; dirSwitchP=1; %mean wait time between switches (s) stimvel=0.05; thetastep=2*pi()*stimvel*timestep; theta=rand()*2*pi(); r=1; while t