Psychtoolbox-3

Psychophysics Toolbox Version 3 (PTB-3) is a free set of Matlab and GNU Octave functions for vision and neuroscience research. It makes it easy to synthesize and show accurately controlled visual and auditory stimuli and interact with the observer. A subset of its functionality is also available as part of Python based toolkits like PsychoPy. For commercial support and services visit our companion website www.psychtoolbox.net.

  • Getting started
    • News
    • Overview
    • Versions
    • System Requirements
    • Download
  • Getting help
    • Beginner Tutorial
    • Function Reference
    • Priority Support
    • Community Forum
    • FAQ
  • Diving in
    • Contribute work or money to the project
    • Wiki
    • Bugs & Feature requests
    • Commercial services
    • Git repository
  • Priority Support
  • Community Forum
  • Automatic Installer
  • Download PTBZIP File

AltRound

>Psychtoolbox>PsychSignal

out = AltRound(nr,factor)
rounds the elements in NR to the nearest multiple
of FACTOR.

FACTOR must be either a scalar or of the same shape as NR.

Thus:
AltRound(12.26,.25) = 12.25;
AltRound(12.2 ,0.6) = 12,
but also
AltRound(1449 ,100) = 1400.

DN 2008
DN 2009-02-02 Support non-scalar factor input

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychSignal/AltRound.m

edit and fork this page on GitHub

Last updated on January 27, 2021