When the input argument to DOUBLE function is a symbolic expression, MATLAB will output the error message you received.
In this particular case, the arguments to 'quiver' '1./l' and 'f./l' are symbolic expressions. To workaround this issue, Use 'EVAL' to evaluate the symbolic expression.