Questions tagged [psychtoolbox]

a MATLAB and GNU/Octave toolbox for the creation of visual (OpenGL based) and auditory displays. It is particularly geared toward vision research applications.

Psychtoolbox is a MATLAB and GNU/Octave toolbox for the creation of visual (OpenGL based) and auditory displays. It is particularly geared toward vision research applications. Given its focus on vision research applications, the toolbox places great emphasis on enabling frame accurate display of visual stimuli, with synced audio presentation, TLL and other triggers and response collection. Through and interface to GStreamer, PsychToolBox also allows the presentation and recording of video files.

More information can be found on the PsychToolBox website.

177 questions
7
votes
3 answers

How can I parallelize input and display in MATLAB?

I'm using Psychtoolbox in MATLAB to run a behavioral psychology paradigm. As part of the paradigm, users have to view a visual stimulus and respond to it using some input mechanism. For a keyboard, this works as follows: show stimulus poll keyboard…
eykanal
  • 26,437
  • 19
  • 82
  • 113
7
votes
4 answers

Matrix of 0s and 1s Where Assignment in Subsequent Rows are Contingent on the Previous Row

I'd like to create a Matrix in MATLAB where: The First row consists of a random arrangement of 0s and 1s, split evenly (i.e. 50-50). The Second row randomly assigns zeros to 50% of the 0s and 1s in the first row, and ones to the remaining 50%. The…
BenJHC
  • 89
  • 6
4
votes
0 answers

Set Joystick position using psychtoolbox

I am running an experiment involving a joystick (cannot use a mouse for technical reasons), using psychtoolbox version 3, on a linux computer. At discrete time-points in the experiment, I need to place the joystick cursor at pre-determined points on…
Bharath
  • 41
  • 1
3
votes
1 answer

pnet communication from win64 to win32

I use the pnet tcp/udp toolbox) along with psychtoolbox to communicate between two instances of matlab in different machines. One of my machines is a 32 bit win7 running matlab 2010b. The other is a 64 bit win 7 running matlab 2012a. I have a…
bas
  • 209
  • 2
  • 10
2
votes
2 answers

How to magnify/stretch a texture with Matlab Psychtoolbox (OpenGL)?

Update: This only seems to be a problem at some computers. The normal, intuitive code seems to work fine one my home computer, but the computer at work has trouble. Home computer: (no problems) Windows XP Professional SP3 AMD Athlon 64 X2 3800+…
Jordi
  • 5,846
  • 10
  • 40
  • 41
2
votes
1 answer

Shuffle an array of unequally repeating entries, so they do not repeat

I am writing an experiment in Matlab Psychtoolbox and my conditions are stored in an array like this Cond = ["VM" "VM" "VN" "VS" "AM" "AM" "AN" "AS" "CM" "CM" "CN" "CS"... "VM" "VM" "VN" "VS" "AM" "AM" "AN" "AS" "CM" "CM" "CN" "CS"]; I now want to…
Pibe_chorro
  • 99
  • 1
  • 8
2
votes
2 answers

GStreamer "SimpleMovieDemo" bug on win x64

Movies aren't played. Matlab crushed even when I tried to run "SimpleMovieDemo". I've done all recommendations suggested when running on Windows in this post: https://github.com/Psychtoolbox-3/Psychtoolbox-3/issues/234. I use "matlab.exe -nojvm",…
Sharonas Ykm
  • 427
  • 2
  • 4
  • 13
2
votes
1 answer

How do I fix the "Unsupported point size requested in Screen('DrawDots')" error?

I have a program which requires the use of the DrawDots function: [minSmoothPointSize, maxSmoothPointSize, minAliasedPointSize, maxAliasedPointSize] = Screen('DrawDots', windowPtr, xy [,size] [,color] [,center] [,dot_type][, lenient]); My line of…
2
votes
1 answer

Calling Matlab/Psychtoolbox from the Shell or from a Makefile does not give the same behavior ! Why?

I thought a Makefile was just executing the stated shell commands, but things seem not that simple : sample.m is a minimal matlab program that displays a word on screen. When launched from a Makefile, it does not behave the same as when launched…
alxpublic
  • 169
  • 1
  • 7
2
votes
2 answers

Pairs of random numbers Matlab

I am trying to generate random numbers between 1 and 6 using Matlab's randperm and calling randperm = 6. Each time this gives me a different array let's say for example: x = randperm(6) x = [3 2 4 1 5 6] I was wondering if it was possible to…
Maheen Siddiqui
  • 539
  • 8
  • 19
2
votes
2 answers

Suppressing a specific key press in PsychToolBox

We are preparing a Likert type scale. Subjects must be allowed to just press the numbers of 1-9. We know ListenChar but it suppresses the whole keyboard. How can we suppress non-number keys? while(1) ch = GetChar; if ch == 10 %return is 10…
user7245982
2
votes
2 answers

Explaning a line in code from PsychToolBox tutorial

I am learning PsychToolBox and referring to this tutorial. http://peterscarfe.com/movingdotgriddemo.html There is this line : vbl = Screen('Flip', window, vbl + (waitframes - 0.5) * ifi); which I cannot figure out. Can someone please explain it…
TYL
  • 1,577
  • 20
  • 33
2
votes
1 answer

How can I change the overall hue of an image, akin to Photoshop's hue adjustment?

Within Photoshop, I can adjust the overall hue of an image so that the black/white/grey levels remain unaffected while the colour hues change respectively to around -100 (picture of scale attached). Is there a MATLAB or PsychToolbox function that…
2
votes
0 answers

Exact Time Measuring for Cognitive Experiments

we have a java program being used for some cognitive diagnosis in which we have to measure time the most exact way possible. till now it has used psychtoolbox to perform these measurements, but since moving from XP to win7 there is a significant…
Spätzle
  • 709
  • 10
  • 20
2
votes
2 answers

Generate sawtooth tone in Matlab Psychtoolbox

Below you can see a function which generates pure sinusoidal waveform. I need to modify it to generate sawtooth waveform. Help please! (I'm on Matlab 2014b with Psychtoolbox 3.0.12, Win 8.1 x64) function [tSnd] = mkPureTone(fs, frq, dur) if nargin…
Bartosz M
  • 123
  • 8
1
2 3
11 12