Function: set_hittest

CALL:

S = set_hittest(hittest)

DESCRIPTION:

Matlab-version-independend way to disable hittest.

INPUT:

hittest string
'on' or 'off' (defaults to 'off')

OUTPUT:

S struct
with fields: hittest and pickableparts.

EXAMPLE:

      aux=struct2namevalue(set_hittest('off'));
      linprops=struct('linew',4,'color','r','parent',hax,aux{:});
      line(x,y,linprops{:})