MATLAB: What is the problem with this code snippet

function handle

function phi1= @(y) 2*(y-0.5)*(y-1)
It says 'Invalid use of operator' on run.