![]() Puts the elements of a vector in random order.Ĭreates a vector with each element repeated a certain number of times. Performs a given function, and returns the Nth element of the result of that functionĬonverts a cell array of vectors, which may be of uneven length, into a matrix. Performs modular division (remainder of X divided by Y), but replaces outputsof 0 with Y. Returns a nicely formatted version of the current time (optionally, with seconds)įinds the x, y coordinates for a point inscribed in a given circle.ĭetermines whether a given number is an even integerĭetermines whether a particular point would be within the bounds of a N-dimensional matrix.ĭetermines whether a given number is an odd integer. Shifts elements horizontally within each row of a matrix. Tests if any value is repeated more than one in a matrix.Ĭounts how many times a specified value appears in a matrix. Can include multiple factors and filler trials.Ĭreates a presentation list for an experiment in which the stimuli vary in lag between 1st and 2nd presentation. Same as Wait4Mouse, but with a time limit.Ĭreates sets of experimental lists using Latin Square designs. Waits for the user to click one of a particular set of regions on the screen. Same as Wait4Key, but can force the user to respond with a particular time limit. Waits for the user to press one of a particular set of a keys and returns the RT and key pressed. Optionally, can end after a maximum time has elapsed with no keypress. Unlike PTB functions, this ignores keys already been held down. Waits for the user to press a key and determines what key was pressed. #Digit span cog lab demo code#Optionally, can read just a limited # of lines.ĭisplay the numerical code corresponding to each keyboard key. Reads a text file into a cell array, with each line as one entry in the cell array. Takes a screenshot of the current experiment display and save it in a file that you can use to demonstrate your experiment. Saves the upper- or lower-triangular part of a matrix Repeatedly prompts the user for a filename until a valid file is openedĭisplays a folder of pictures one at a time to make sure they look good in your experiment. This window can then be quickly copied to another using PTB's Screen("CopyWindow") functionĮnsures that a path is a properly formatted folder name, and creates that folder if needed. Loads an image from a file and puts it in a new offscreen window. Loads an image from a file and puts it in a new texture. Optionally, can also rotate subjects through a set of lists. Gets a valid subject number from the experimenter and verifies it hasn't already been used. Prints using fprintf both to the MATLAB Command Window and to a file Opens a comma-separated spreadsheet with a set of named columns and converts it to a struct. Updates MATLAB's active directory to the directory where the current script is. (This doesn't colorize the image it just changes the format so you can do color-related operations on it.) Presents 2-digit subtraction problems for a specified duration.Ĭonverts a black-and-white or grayscale image to RGB format. Presents 2-digit multiplication problems for a specified duration. Presents 2-digit addition and subtraction problems (mixed) for a specified duration. Presents 2-digit division problems for a specified duration. Presents 2-digit addition problems for a specified duration. For installation instructions and more, please see the main CogToolbox page.įunctions in the CogToolbox were written by Scott Fraundorf, Michael Diaz, Jason Finley, Molly Lewis, Kristen Tooley, Angie Isaacs, Sarah Brown-Schmidt, Tuan Lam, and Laurel Brehm. This page describes all of the function in the CogToolbox. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |