我不太擅长 Matlab,我的实验室实验需要帮助。我需要创建一个完整尺寸的图像/gif/视频吗?(全显示器尺寸),由白色背景和一个从左向右移动的黑色小方块组成。我需要以后能够修改这个正方形的大小、位置和速度。非常感谢!
问问题
449 次
1 回答
2
For this sort of thing, Psychtoolbox is your friend. I don't have experience with it, but it is a MATLAB toolbox perfectly designed for full screen visual stimuli.
The toolbox contains an existing example called 'moving line demo':
MovingLineDemo([xv=10][, twolines=0][, screenid=max])
Shows a pair of vertical lines, or a single line, which travel
horizontally across the display from the left to the right, repeating
infinitely.
See if you can edit this to suit your need; if you get stuck, come back to ask a more specific question!
于 2013-03-12T15:42:55.447 回答