function quad = quadrant(w,h,x,y)

% Danielle Merriam
% Cochlear Research
% Modified: 4:23pm T 7/3/01
% determines quadrant based on x,y point and center of circle
% quadrant a is above and to the right of the center
% quadrant b is above and to the left of the center
% quadrant c is below and to the left of the center
% quadrant d is below and to the right of the center

if     ((x > w & y > h) | (x > w & y == h))
   quad = 'a';
elseif ((x < w & y > h) | (x == w & y > h))
   quad = 'b';
elseif ((x < w & y < h) | (x < w & y == h))
   quad = 'c';
elseif ((x > w & y < h) | (x == w & y < h))
   quad = 'd';
end      
