- To integrate a function that returns numeric values, use the integral function.
- To integrate a symbolic expression symbolically, use the int function.
- To integrate a symbolic expression numerically, use one of two approaches. Either use vpaintegral or convert the symbolic expression into a function that returns numeric values using the matlabFunction function and then use the integral function.