MatVis format:
MatVis('function name', additional parameters...)

Function: 'run'

Present a trial according to a predefined data.

Parameters :

('run', trialNumber, mode)
trialNumber = The particular trial/condition that is to be presented.
mode = if TRUE (1) return to the MATLAB command window screen, if FALSE (0) say in the MatVis video mode after the trial presentation. currently supported).

Return:

Returned number indicates our best duration error estimate in video frames.
If the number is greater than one a video frame may have been accidentally presented twice (missed a vertical sync pulse).

Description:

After setting up all the trials all that remains is repeated calls to the run function to present trials and collect the subject responses. If frames are being dropped (return value) then perhaps the images should be smaller to accommodate the speed of the current hardware. Sometimes changing the video mode will improve throughput.

Examples:

1) Present 3 trials and collect subject responses between each while staying in the MatVis video mode. Change to the Command window after the three trials have been presented and the data collected.

for i=1:3, error=MatVis('run',i,0); response(i)=input(' '); end;

MatVis('flip');

See Also:

spatial temporal trial