由于需要在Matlab上安装Psychtoolbox,我先去查找了一些相关的经验贴,然后按照如下操作进行安装的。
1.下载DownloadPsychtoolbox.m
这里我找到了Psychtoolbox的官方安装网址:http://psychtoolbox.org/download#download-problems
该网址中详细的列出了关于旧版本的处理,不同电脑的对应安装包,以及其他相应的安装文件,可以详细看看,此处列出目录部分
Contents
Removing Old Versions of Psychtoolbox
Installation Instructions
Linux
Windows
Mac
Alternate download as a zip file
Installation without Download
Staying Up-to-Date
More Information
Download problems
Subversion
Downgrading
Access to Archived Versions of PTB-3
(ps:我安装的是window版本,但是该网址中仅仅列出了安装在C盘的方法)
下载对应的Psychtoolbox.zip文件,然后打开matlab,运行第二步
2.运行命令
把路径切换到你保存DownloadPsychtoolbox.m文件的地方,在命令行里输入
>>DownloadPsychtoolbox('此处填写安装DownloadPsychtoolbox.m的路径')
运行后显示如下:
DownloadPsychtoolbox(‘E:\matlab’)
DownloadPsychtoolbox(‘E:\matlab’,‘beta’,’’, 0)
Requested flavor is: beta
Requested location for the Psychtoolbox folder is inside: E:\matlab
Using optimal client for subversion checkout.
Good. Your privileges suffice for the requested installation into folder E:\matlab.
I will now download the latest Psychtoolbox for Windows.
Requested flavor is: beta
Target folder for installation: E:\matlab
Downloading via Matlabs integrated SVNKit: This can take multiple minutes.
There may be no output to this window to indicate progress until the download is complete.
Please be patient …
Download of SVN revision 12166 succeeded!
Now adding the new Psychtoolbox folder (and all its subfolders) to your MATLAB / OCTAVE path.
Success.
Now setting permissions to allow everyone to write to the Psychtoolbox folder. This will allow future updates by every user on this machine without requiring administrator privileges.