How to Integrate a Function in MATLAB
An example of using Matlab symbolic variables and the int function to integrate a function. syms requires installation of the Symbolic Math Toolbox with may not already be included with your version of MATLAB. If you get an error message, just click on the link to get the Add-On Symbolic Math Toolbox
https://www.mathworks.com/products/sy...