Commit 8da48606 authored by Jesse Heckman's avatar Jesse Heckman

New clean

parent df67a53f
......@@ -59,7 +59,7 @@ function pb_vGenExp_VisFlash(varargin)
dEl = dEl(:);
sel1 = (abs(dAz)+abs(dEl)) <= maxAbsAz & abs(dEl) <= maxAbsEl;
sel2 = iseven(dAz) | dEl == 0;
sel2 = iseven(dAz) & dEl ~= 0;
sel = sel1 & sel2;
dAz = dAz(sel);
......@@ -70,9 +70,10 @@ function pb_vGenExp_VisFlash(varargin)
%% Select target positions used in experiment
% Get targerts.
targetInd = randperm(length(dAz));
dAz = dAz(sort(targetInd(1:63)));
dEl = dEl(sort(targetInd(1:63)));
targetl = length(dAz);
targetInd = randperm(targetl);
dAz = dAz(sort(targetInd(1:targetl)));
dEl = dEl(sort(targetInd(1:targetl)));
%% Actual azimuth and elevation
% The actual speaker positions are not perfectly aligned with 5 deg
......
No preview for this file type
......@@ -10,8 +10,7 @@ function [n,p] = pb_defsubplot(fig)
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
figure(fig);
h = pb_fobj(gcf,'Type','Axes');
h = pb_fobj(fig,'Type','Axes');
n = length(h);
p = zeros(1,n);
......
......@@ -8,7 +8,7 @@ function pb_clear(varargin)
% PBToolbox (2018): JJH: j.heckman@donders.ru.nl
% get workspace
list = evalin('base', 'who');
listsz = length(list);
listArr = 1 : listsz;
......
......@@ -12,12 +12,13 @@ function out = pb_where(varargin)
fn = which(varargin{1});
if isempty(fn); return; end
path = fn(1:end-(length(varargin{1})+2));
p = fn(1:end-(length(varargin{1})+2));
if nargout == 1
out = path;
out = p;
else
disp(path);
disp(p);
clipboard('copy',p);
end
end
......
......@@ -27,7 +27,7 @@ function [h,D] = pb_probit(D, varargin)
%% Rawdata
iRT = 1/D;
iRT = 1./D;
x = -1./sort(D);
n = numel(iRT);
y = probitscale((1:n)./n);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment