Code covered by the BSD License  

Highlights from
bsxops

from bsxops by Bruno Luong
Force MATLAB operators to behave BSXFUN-like

gt(x,y)
function res = gt(x,y)

if isequal(size(x),size(y)) || isscalar(x) || isscalar(y)
    res=builtin('gt',x,y);
else
    res=bsxfun(@gt,x,y);
end

Contact us at files@mathworks.com