pb_vPrimeZ.m 1.19 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function block = pb_vPrimeZ(block,cfg)
% PB_VPRIMEZ()
%
% PB_VPRIMEZ()  ...
%
% See also ...

% PBToolbox (2018): JJH: j.heckman@donders.ru.nl

   cfg;
   for iBlck = 1:cfg.Blocks
      ntrls = length(block(iBlck).trial);
      for iTrl = 1:ntrls
         nstms = length(block(iBlck).trial(iTrl).stim);
         for iStm = 1:nstms
            X = block(iBlck).trial(iTrl).stim(iStm); 
            if ~isempty(X)
               
               ZI = cfg.interpolant(block(iBlck).trial(iTrl).stim(iStm).azimuth,block(iBlck).trial(iTrl).stim(iStm).elevation);
               block(iBlck).trial(iTrl).stim(iStm).Z           = ZI;
               block(iBlck).trial(iTrl).stim(iStm).azimuth   	= cfg.lookup(ZI+1,4);
               block(iBlck).trial(iTrl).stim(iStm).elevation	= cfg.lookup(ZI+1,5);
            end
         end
      end
   end
end
 
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % 
%                                                           %
%       Part of Programmeer Beer Toolbox (PBToolbox)        %
%       Written by: Jesse J. Heckman (2018)                 %
%                                                           %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %