File tree Expand file tree Collapse file tree 6 files changed +20
-20
lines changed Expand file tree Collapse file tree 6 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 11% (C) Copyright 2020 CPP_PTB developers
22
33function fov = drawFieldOfVIew(cfg , centerOnScreen )
4- %
4+ %
55 % Draws a red rectangle on the screen to materialize the field of view of
66 % the participant. This can be used during debugging to help design the
77 % stimuli if you know the FOV of the participant will be obstructed by
1111 %
1212 % fov = drawFieldOfVIew(cfg, centerOnScreen)
1313 %
14- % :param cfg:
14+ % :param cfg:
1515 % :type cfg: structure
16- % :param centerOnScreen:
16+ % :param centerOnScreen:
1717 % :type centerOnScreen: boolean
1818 %
1919 % :returns: - :fov: (array) PTB rectangle
2020 %
21-
21+
2222 if nargin < 2
2323 centerOnScreen = true ;
2424 end
Original file line number Diff line number Diff line change 99 %
1010 % structure = degToPix(fieldName, structure, cfg)
1111 %
12- % :param fieldName:
12+ % :param fieldName:
1313 % :type fieldName: string
14- % :param structure:
14+ % :param structure:
1515 % :type structure: structure
16- % :param cfg:
16+ % :param cfg:
1717 % :type cfg: structure
1818 %
1919 % :returns: - :structure: (structure)
Original file line number Diff line number Diff line change 11% (C) Copyright 2020 CPP_PTB developers
22
33function structure = pixToDeg(fieldName , structure , cfg )
4- %
4+ %
55 % For a given field value in pixel in the structure,
66 % this computes its value in degrees of viual angle using the pixel per
77 % degree value of the cfg structure and returns a structure with an
1212 %
1313 % structure = pixToDeg(fieldName, structure, cfg)
1414 %
15- % :param fieldName:
15+ % :param fieldName:
1616 % :type fieldName: string
17- % :param structure:
17+ % :param structure:
1818 % :type structure: structure
19- % :param cfg:
19+ % :param cfg:
2020 % :type cfg: structure
2121 %
2222 % :returns: - :structure: (structure)
Original file line number Diff line number Diff line change 88 %
99 % structure = setDefaults(structure, fieldsToSet)
1010 %
11- % :param structure:
11+ % :param structure:
1212 % :type structure: structure
13- % :param fieldsToSet:
14- % :type fieldsToSet: structure
13+ % :param fieldsToSet:
14+ % :type fieldsToSet: structure
1515 %
16- % :returns: - :structure: (structure)
16+ % :returns: - :structure: (structure)
1717
1818 fieldsToSet = orderfields(fieldsToSet );
1919
Original file line number Diff line number Diff line change 77 %
88 % cfg = setDefaultsPTB(cfg)
99 %
10- % :param cfg:
10+ % :param cfg:
1111 % :type cfg: structure
1212 %
1313 % :returns: - :cfg: (structure)
14- %
14+ %
1515
1616 if nargin < 1
1717 cfg = struct ;
Original file line number Diff line number Diff line change 22% (C) Copyright 2020 CPP_PTB developers
33
44function setUpRand()
5- %
6- % Resets the seed of the random number generator.
5+ %
6+ % Resets the seed of the random number generator.
77 % Will "adapt" depending on the Matlab / Otave version.
8- %
8+ %
99 % USAGE::
1010 %
1111 % setUpRand()
You can’t perform that action at this time.
0 commit comments