Use this function to plot a text on the presentation window. A wrapper function for the psych function DrawFormattedText that handles the typical Psychophysics Toolbox problems for beginners.
...
...
@@ -47,7 +47,7 @@ Use this function to plot a text on the presentation window. A wrapper function
~~~
**Examples**
~~~
~~~matlab
1.showText('Hello World');
% Draws the string Hello World on the middle of the screen
...
...
@@ -68,7 +68,7 @@ Use this function to plot a text on the presentation window. A wrapper function
Use this function to change the text size and the spacing between two text lines on the stimulus presentation window. Settings are global settings until this function is called again.
...
...
@@ -82,7 +82,7 @@ Use this function to change the text size and the spacing between two text lines
Use this function to display instructions or information to a subject. The text is read out of a text file or entered directly. The user has to press a key to continue the program and the screen is cleared automatically.
...
...
@@ -103,7 +103,7 @@ Use this function to display instructions or information to a subject. The text
~~~
**Examples**
~~~
~~~matlab
1.showInstructions('instruction1.txt')
% displays the text of the given file
...
...
@@ -113,7 +113,7 @@ Use this function to display instructions or information to a subject. The text
@@ -215,7 +215,7 @@ Use this function to plot a scale on the stimulus presentation window that is hi
## startQuestionnaire (human)
function: out = startQuestionnaire(text, ansText, varargin)
function: out = [startQuestionnaire(text, ansText, varargin)](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Tools/Questionnaire/startQuestionnaire.m)
**Description**
This is the main function for questionnaires. It needs at least two arguments. In addition startQuestionnaire allows you to modify several optional parameters.
...
...
@@ -258,7 +258,7 @@ varargin ‘mainDiv’ a value in percent that divides the screen vertically int
This function creates a box that allows the user to type a free defined word or text. The input is terminated by pressing enter. The text is available in MATLAB as a string. Use ESC key to exit function.
...
...
@@ -289,7 +289,7 @@ This function creates a box that allows the user to type a free defined word or
This function cleans the font config cache of GStreamer. Call this function if text rendering takes a very long time! Should not be called from within an experiment.