Differences

This shows you the differences between two versions of the page.

Link to this comparison view

mgl:taskreferenceparameters [2012/01/30 23:12]
mgl:taskreferenceparameters [2012/09/21 07:29]
Line 87: Line 87:
   task.randVars.myRandomParameter = [...];   task.randVars.myRandomParameter = [...];
  
-Then myRandomParameter will be available in task.thistrial.myRandomParameter in the order you specify in the array.+Then myRandomParameter will be available in task.thistrial.myRandomParameter in the order you specify in the array. ​"​myRandomParameter"​ can be any name you choose. Note in this example there is no type definition before the variable name (e.g., block or uniform). Variables declared this way will be treated by MGL as a real sequence, whereas the normal usage (with block/​uniform field) is treated as declaration of the //levels// of a variable, which is used to generate a sequence by MGL.  
 ===== Creating a parameter sequence after running the stimulus program ===== ===== Creating a parameter sequence after running the stimulus program =====