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

Function: 'trial'

Provide the general information for setting up a trial.

Parameters :

('trial',trial, nImages, origin, extent)
trial = condition or trial number (1-10)
nImages = number of images in the trial
origin = image sequence location, [0,0] = upper left corner
extent = size of image, [100,200] =100 rows by 200 cols.

Return:

1 = indicates an internal error occurred in MatVis
0 = successful completion of command

Description:

In psychophysical experiments is often useful to setup all the stimuli ahead of time and present them as needed, as in method of constant stimuli. The trial command provided the basic information about a single trial, including the number of video images to be stored and there size as well as where on the the physical display screen the images will be presented. The origin parameter indicates in pixels (rows and columns) the distance from the upper left corner of the image is to be from the upper left corner of the physical display device. Use of trial must be called before related commands that load the images, set up the lookup tables and so on are called to fill in the trial information.

Examples:

Declare that trial (condition) five will consist of 30 images which will fill the screen except for a 10 pixel boarder.

MatVis('trail', 5, 30, [10 10], [630 470]);

See Also:

spatial temporal trailLUT fixationTrial