我正在使用display在屏幕上显示,作为界面的一部分。我在主脚本中使用[win,Rect]=Screen('OpenWIndow',etc.etc...)创建了一个空白屏幕。我想稍后在脚本中使用函数调用来更新屏幕,但我不知道如何将值传入和传出函数以更改屏幕。
所以就像这样:
%main script
[win,Rect]=Screen('OpenWIndow',0,[0 0 0],[0 0 1280 1024]);
%do other processing (in my case communicating with another computer.)
DrawStuff() %function that takes variables from script and updates the screen
% continue script发布于 2016-04-14 18:16:09
Screen('Flip',win)就是你要找的,但是你需要发出一些绘图命令才能让它显示任何东西。
请阅读basics发行版中的文件basics/PTBTutorial-ECVP2013.pdf,以了解刺激呈现的基础知识。
https://stackoverflow.com/questions/32532566
复制相似问题