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

Function: 'temporal'

Setup details about the order and timing of how the spatial patterns are to be presented for a particular trial.

Parameters :

('temporal', trialNumber, nrepeats, [nframes frameNumber ...])
trialNumber = The particular trial/condition that is to be setup.
nrepeats = The number of times to repeat the third parameter (presentation order) for each trial presentation.
[nframes frameNumber ...] = This vector is a series of numerical pairs where the first number is the number of presentation frames and the second number is the number of the frame in the trial buffer to be presented.

Return:

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

Description:

After the trials have been defined, this temporal function determines the trial duration in frames and the presentation sequence. The final vector parameter indicates the duration and order of frame presentation. This structure provides for a very flexible arbitrary presentation order. A particular frame (image) could be listed several time in the vector to produce any desired ordering of frames.

Examples:

1) Six frames have been loaded in trial three with increasing contrast. Use the temporal command to define a presentation sequence that lasts 100 frames with 5 frames of increasing and decreasing contrast at the leading and trailing frames of the presentation, respectively.

MatVis('temporal', 3, 1, [1 1 1 2 1 3 1 4 1 5 90 6 1 5 1 4 1 3 1 2 1 1]);

2) Ten frames of a sinewave grating with successive spatial phase shifts of 2pi/10 have been loaded into trial 5. The framerate is 60 Hz. Use the temporal function to present 40 temporal cycles of the grating drifting at 12 Hz.

MatVis('temporal, 5, 40,[1 1 1 3 1 5 1 7 1 9]);


See Also:

temporalLUT trial