双显示器Psychtoolbox Matlab

时间:2019-02-20 13:47:09

标签: matlab multiple-monitors psychtoolbox

我从Matlab开始,所以从peterscarfe.com进行了tuto。 我的计算机上有2个屏幕,但是当我运行tuto的第一个代码时,似乎它将这2个屏幕识别为一个大屏幕:

% Clear the workspace and the screen
sca;
close all;
clearvars;

% Here we call some default settings for setting up Psychtoolbox
PsychDefaultSetup(2);

% Get the screen numbers. This gives us a number for each of the screens
% attached to our computer.
screens = Screen('Screens');

使用此代码,screens = 0,而我期望矢量[0 1]吗?因为我想在屏幕上显示Matlab窗口,而在另一个屏幕上显示我的PTB ... 我看到在屏幕功能中需要设置physicalDisplays,但是当我尝试使用physicalDisplays = 1或仅设置为“ 1”时,它不起作用,我不知道期望使用哪种语法。 谢谢!

编辑:对不起,我忘记了我在linux上,Ubuntu 16.04。

0 个答案:

没有答案