-
Notifications
You must be signed in to change notification settings - Fork 4
/
runCriticalSpacingAntjeBilateral.m
executable file
·42 lines (37 loc) · 1.38 KB
/
runCriticalSpacingAntjeBilateral.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
% MATLAB script to run CriticalSpacing.m
% Look at boilerplate.m for a list of all fields that can be set.
clear o
% boilerplate;
% o.useFractionOfScreenToDebug=0.3;
o.trialsDesired=40;
o.practicePresentations=0;
o.experiment='CriticalSpacingAntjeBilateral';
o.condition='CrowdingDistance';
o.experimenter='Antje';
o.observer='';
o.viewingDistanceCm=50;
o.flankingDirection='radial';
o.eccentricityXYDeg=[10 0]; % Distance of target from fixation. Positive up and to right.
o.nearPointXYInUnitSquare=[0.5 0.5]; % location on screen. [0 0] lower right, [1 1] upper right.
o.durationSec=0.2; % duration of display of target and flankers
o.targetFont='Sloan';
o.alphabet='DHKNORSVZ'; % Sloan alphabet, excluding C
o.borderLetter='X';
o.targetDeg=2;
o.repeatedTargets=0;
o.thresholdParameter='spacing';
o.setNearPointEccentricityTo='fixation';
o.fixationMarkDeg=3; % 0, 3, and inf are a typical values.
o.fixationThicknessDeg=0.02;
% Randomly interleave testing left and right.
oo=[o o];
oo(2).eccentricityXYDeg=-oo(2).eccentricityXYDeg;
% Print list of conditions.
t=struct2table(oo);
fields={'experiment','condition','experimenter','observer','thresholdParameter','trials','eccentricityXYDeg'};
disp(t(:,fields));
% Measure left and right thresholds, interleaved.
o=CriticalSpacing(oo);
% Results are printed in MATLAB's Command Window and saved in the
% CriticalSpacing "data" folder.