Question: pls help with the code as i dont get it % % % % % % % changes on this iteration % % % %

pls help with the code as i dont get it
%%%%%%% changes on this iteration
%%%%% now collecting 6 Annulus Sizes and 6 Luminance levels for all
%%%%% constrast polarity conditions. IT will take long
%% start-up
clear;
% clc;
rng default % set to default if legacy seed is active
rng shuffle % every daym shufflin'
sca; % in case there is anything in buffers and such
PsychDefaultSetup(0)% reset it
AssertOpenGL; % add openGL (since we reset it above)
Screen('Preference', 'SkipSyncTests', 1);
%%% if you have to set above to 1, you'd be better off finding out why.
%%% This is not a default PTB state, don't be casual about disabling the
%%% vertical sync test. Try disabling any vertical sync algorithm in your
%%% driver (Nvidia) instead. Sync is NOT important for this code, but for
%%% smooth experience following participant inputs, it is recommended.
load('LG_UltraGear_256_24-Nov-2021.mat'); % LG color info file
%% parameters (edit only here)
% flags
fFixation=false; % do we display a fixation cross
fCenterDiscs=false; % discs centered each half (or apart by distanceDisc_dg)
fActualLuminance=true; % use exact luminance matched to RBG vs log steps (they are so close)
fAllowMaxValueForManipulation=false; % do I allow manipulated stimuli to match max or min luminance at extremes
fDiscNoMatchAnnulus=true; % do we allow conditions where annulus and the fixed disc have the same luminance
fSolidDiscForVariable=false; % do we allow starter color Variable disc to be the same for solid (true isn't coded at this iteration - check 525)
% experiment parameters
subjectDistance_mm=570; % how far the person should sit
radiusDisc_dg=0.7;
fixation_dg=0.5; % of one line
distanceDiscs_dg=10; % edge to edge (discs)
luminanceCount=6; % how many steps are we gonna have (interacts with logStep)
logStep=0.1; % the value where we iterate levels of contrast
radiusAnnulus_dg=0.10; % starting point of annulus radius (portion beyond disc)
annulusSteps_dg=0.60; % how much annulus gets bigger in each stair steps
annulusSizeCount=6; % how many different sizes we can and should try
nTrialPerCondition=6; % how many trials in a condition (now interacts with variable disc brightness spread)
discOffset=10; % brightness levels offset of the variable disc starting values from mean
nBlock=4; %4 conditions explained below
%%%% The annulus luminance is fixed on each trial but varies from trial to
%%%% trial over a range that is limited by the constraints of the condition
%%%%%%%%% INC-INC (1), INC-DEC (2), DEC-INC (3), DEC-DEC (4).
%%%%- INC-x means dark background (black but measurable)
%%%%- DEC-x means white background (background is the highest luminance
%%%% among the background, disks and annulus).
%%%%- x-INC means the disk is constrained to be higher RGB than the annulus.
%%%%- x-DEC means disk constrained to be lower RGB than the annulus.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!