Home > eeg > egis > meg_code > mask_meg_fixval.m

mask_meg_fixval

PURPOSE ^

SYNOPSIS ^

function masked_map= mask_meg_fixval(x,y,z,map,theta_max,fixvalue)

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function masked_map= mask_meg_fixval(x,y,z,map,theta_max,fixvalue)
0002 
0003 [az,el,r] = cart2sph(x,y,z);
0004 el = (pi/2)*ones(size(el,1),size(el,2)) - el;
0005 masked_map = map;
0006 for i=1:size(map,1)
0007     for j=1:size(map,2)
0008         if el(i,j) >= theta_max*pi/180;
0009             masked_map(i,j) = fixvalue;
0010         end
0011         if (abs(az(i,j)) < 0.7 & el(i,j) >= 80*pi/180)
0012             masked_map(i,j) = fixvalue;
0013         end;
0014     end;
0015 end;
0016 
0017

Generated on Sat 25-May-2019 04:00:51 by m2html © 2003