1 / 6

Sounds and external devices in Cogent & Matlab

Sounds and external devices in Cogent & Matlab. MATLAB for Cognitive Neuroscience Marieke Schölvinck, 19 March 2009. external devices (1)…. keyboard / keypad. config_keyboard waitkeydown ( time in ms , key to be pressed) e.g. (inf,71)

hao
Download Presentation

Sounds and external devices in Cogent & Matlab

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sounds and external devices in Cogent & Matlab MATLAB for Cognitive Neuroscience Marieke Schölvinck, 19 March 2009

  2. external devices (1)… keyboard / keypad config_keyboard waitkeydown (time in ms, key to be pressed) e.g. (inf,71) readkeys (useful: help readkeys, to find out key IDs) [k, t, n] = getkeydown (k = key ID, t = time in ms, n = number of keys pressed) n = countkeydown [k, t] = lastkeydown (k = key ID, t = time in ms) logkeys clearkeys

  3. external devices (2)… mouse config_mouse (polling mode and unpolling mode, e.g. (10) ) map = getmousemap (creates structure map with variables: X, Y, Z, Button1-4) readmouse (updates information in map) x = getmouse (get any of the variables in map) eyetracker: in 2 weeks!

  4. sound

  5. Two ways to get sounds: • Load a sound • A .wav file • Make a sound • - In Cogent or Matlab

  6. Cogent Set of predefined commands Matlab One equation:

More Related