You are using absolute error tolerance in Matlab (AbsTol) and relative tolerance in QuadGK (rtol). Since the integral goes to zero, QuadGK won’t give up until the error is actually 0.0.
Use atol instead. Or, perhaps, both rtol and atol, to make sure you get convergence both in cases with zero result and with non-zero results.