# Teaching Materials II (UCM 2019-2020)

We have developed NEW Matlab GUIs for students and teachers for Perception classes (for Vision and Audition) (Download Matlab programs. Updated 06-02-2023).

Last version tested Matlab R2017b. Minimum resolution 1366 x 768 pixels.

To run the programs: Once you download the .zip file and unzip the file in a single directory, then open the script Main_panel.m and run the program.

You will see the next menu from which you can select each program:

## A) Stereoacuity determination using a 4AFC task.

Matlab GUI to obtain your stereoacuity using Bayesian staircases in a 4AFC task. You need to wear anaglyph glasses and place the red filter in front of the left eye.

We also have a 2AFC version

## B) Contrast Sensitivity Function.

Matlab GUI to obtain your Contrast Sensitivity Function.

You can also replicate the classic experiment from Campbell & Robson (1968). Is your ratio for square wave and sinusoidal wave sensitivities equal to 4/pi for spatial frequencies higher than 1 c/deg?

## C) Disparity Sensitivity Function.

With this Matlab GUI you can obtain your Disparity Sensitivity Function for vertical and horizontal sinusoidal corrugations.

You will be able to obtain the stereoscopic anisotropy for spatial frequencies lower than 1 c/deg.

This Matlab demo shows motion gratings that can be masked by sinusoidal gratings or 1D white noise. The noise can be filtered using ideal or Butterworth filters.

## E) Colorimetry

This Matlab GUI is very useful for explaining the basics of Colorimetry. The program calculates the basic indices of the systems CIE 1931 and CIE 1976 (CIE Luv and CIE Lab).

The program allows you to change the Power distribution the lights using the mouse. You can also compare the Total color (E) and the Hue of both lights.

We have the version for objects assuming two illuminants (E and D65). The program allows you to change the Reflectance of the objects using the mouse.

## F) The Gammachirp filter (Basilar Membrane Motion)

This Matlab program shows a simulation of the vibration of the Basilar Membrane for different sounds. It uses the Gammachirp filterbank (Irino & Patterson, 2001).

## G) The Gammatone filter (Basilar Membrane Motion)

This Matlab program shows a simulation of the vibration of the Basilar Membrane for different sounds. It uses the Gammatone filterbank (Flanagan, 1960; Aertsen & Johannesma, 1980; Patterson et al. 1987).

## H) The Gammachirp filterbank

This Matlab Gui computes the gammachirp "spectrogram".