MATLAB: Question about using quad function

MATLABquad

Hello, I've been trying to integrate a function (5+log(x))/(x.^2+1) using the quad function, so I input
quad('(5+log(x))/(x.^2+1)',1,4)
However, I keep getting the error
Error using quad (line 79) The integrand function must return an output vector of the same length as the input vector.
Can someone help with with this?

Best Answer

Notice the one additional period I added:
quad('(5+log(x))./(x.^2+1)',1,4)
Related Question