matlab-psychtoolbox-3 – toolbox for vision research – Matlab bindings

[Note: non-standard licensing terms – please verify license compliance]

Psychophysics Toolbox Version 3 (PTB-3) is a free set of Matlab and GNU/Octave functions for vision research. It makes it easy to synthesize and show accurately controlled visual and auditory stimuli and interact with the observer.

The Psychophysics Toolbox interfaces between Matlab or Octave and the computer hardware. The Psychtoolbox’s core routines provide access to the display frame buffer and color lookup table, allow synchronization with the vertical retrace, support millisecond timing, allow access to OpenGL commands, and facilitate the collection of observer responses. Ancillary routines support common needs like color space transformations and the QUEST threshold seeking algorithm.

This package exposes PTB-3 within Matlab environment. It also provides a convenience script ptb3-matlab to simplify running psychtoolbox in matlab.

See also for additional information about systems tune-up and initial configuration.

For now it relies on -nonfree package providing binary builds of all PTB-3 bindings for Matlab.


David H. Brainard (1997). The Psychophysics Toolbox. Spatial Vision, 10, 443-446. [DOI]

D.G. Pelli (1997). The VideoToolbox software for visual psychophysics: Transforming numbers into movies. Spatial Vision, 10, 437-442. [DOI] [Pubmed]

Package availability chart


Base version

Our version


Debian GNU/Linux 10.0 (buster)

i386, amd64, sparc, armel, ppc64el

Debian GNU/Linux 11.0 (bullseye)

i386, amd64, sparc, armel, arm64

Debian GNU/Linux 12.0 (bookworm)

i386, amd64, sparc, armel, arm64

Debian GNU/Linux 9.0 (stretch)

i386, amd64, sparc, armel

Debian unstable (sid)

i386, amd64, sparc, armel, arm64

Ubuntu 16.04 “Xenial Xerus” (xenial)

i386, amd64, sparc, armel

Ubuntu 18.04 “Bionic Beaver” (bionic)

i386, amd64, sparc, armel

Ubuntu 20.04 “Focal Fossa” (focal)

i386, amd64, sparc, armel, arm64

Ubuntu 22.04 “Jammy Jellyfish” (jammy)

i386, amd64, sparc, armel, arm64


blog comments powered by Disqus