-
大小: 93.71MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-06-10
- 语言: Matlab
- 标签: Psychtoolbox
资源简介
心理学工具箱,也常常用来编写脑际接口实验的实验范式,从3.0.12版本开始就不支持用在32位的matlab了,但是某些情况下还是需要,比如要用很久之前的程序做一下验证,所以在GitHub上下载了3.0.11版本,因为下载的时候太慢了,在这里上传一下,希望能够用的到
代码片段和文件信息
function parseptbdownloadlog(fname)
% parseptbdownloadlog(fname) - Download log parser.
%
% Parses a Psychtoolbox online registration logfile
% ‘fname‘ does stats on it prints the summary.
%
% History:
% 16.10.2006 Written (MK).
if nargin < 1
fname = ‘ptbregistration.log‘;
end
fd=fopen(fname ‘rt‘);
if fd==-1
error(‘File not found.‘);
end
ofl = [];
knownmacids = containers.Map;
transactioncount = 0;
totalcount = 0;
betacount = 0;
stablecount = 0;
trunkcount = 0;
unknowncount = 0;
oldptb306count = 0;
osxcount = 0;
wincount = 0;
linuxcount = 0;
try
while(1)
% Read next line from file:
fl = fgetl(fd);
if fl==-1
% Stop at end of file:
break;
end
% Concatenate it to current piece:
ofl = [ ofl fl ];
% Real end reached?
le = strfind(ofl ‘‘);
if isempty(le)
% Nope just go ahead.
else
% Yes! Process it then restart.
%fprintf(‘%s\n‘ ofl);
% This counts as one transaction:
transactioncount = transactioncount + 1;
% We count each MACID only once:
ls = strfind(ofl ‘‘);
le = strfind(ofl ‘ ‘);
% Extract macid as character string:
macid = ofl(ls+7:le-1);
if ~knownmacids.isKey(macid)
% This is a new one. Count it:
knownmacids(macid) = 1;
% Total unique count:
totalcount = totalcount + 1;
if (mod(totalcount 1000) == 0)
fprintf(‘Elapsed %i\n‘ totalcount);
end
% if strfind(ofl ‘beta ‘)
% betacount = betacount + 1;
% end
%
% if strfind(ofl ‘stable ‘)
% stablecount = stablecount + 1;
% end
%
% if strfind(ofl ‘trunk ‘)
% trunkcount = trunkcount + 1;
% end
%
% if strfind(ofl ‘Psychtoolbox-3.0.6 ‘)
% oldptb306count = oldptb306count + 1;
% end
%
% if strfind(ofl ‘unknown ‘)
% unknowncount = unknowncount + 1;
% end
if strfind(ofl ‘MacOS-X‘)
osxcount = osxcount + 1;
end
if strfind(ofl ‘Windows‘)
wincount = wincount + 1;
end
if strfind(ofl ‘Linux‘)
linuxcount = linuxcount + 1;
end
end
% R
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\
文件 49 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\.gitattributes
文件 483 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\.gitignore
目录 0 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\
目录 0 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\
目录 0 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\
文件 9211721 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\ARToolKit-2.72.1-bin-win32.zip
文件 1389 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\Readme.txt
目录 0 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\
目录 0 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\
文件 30032 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\ar.h
文件 5380 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\arMulti.h
文件 1036 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\arvrml.h
文件 8821 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\config.h
文件 8820 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\config.h.in
文件 12613 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\gsub.h
文件 2590 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\gsubUtil.h
文件 25390 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\gsub_lite.h
文件 10314 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\matrix.h
文件 7830 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\param.h
目录 0 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\sys\
文件 413 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\sys\videoGStreamer.h
文件 999 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\sys\videoLinux1394Cam.h
文件 1174 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\sys\videoLinuxDV.h
文件 1367 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\sys\videoLinuxV4L.h
文件 2321 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\sys\videoMacOSX.h
文件 1908 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\sys\videoSGI.h
文件 2161 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\sys\videoWin32DirectShow.h
文件 13033 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\ARToolkit\include\AR\video.h
目录 0 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\FTGLTextRenderer\
文件 1153 2014-04-06 20:11 Psychtoolbox-3-PTB_Beta-2014-04-06_V3.0.11\PsychSourceGL\Cohorts\FTGLTextRenderer\COPYING.LIB
............此处省略4027个文件信息
评论
共有 条评论