Info

This question is closed. Reopen it to edit or answer.

How to do the matlab integral algorythm of a function using numerical methods?

1 view (last 30 days)
any idea ? The function is f=x^3+9/x.

Answers (1)

Gopalkrishna Bhat
Gopalkrishna Bhat on 5 May 2015
Hi Altin,
Indefinite integration can be done in matlab using the int() function. For the above function the codes are
syms x;
int(x^3+9/x,x);
You integrate numerically if limits are provided using Trapezoidal method. http://in.mathworks.com/help/matlab/ref/trapz.html#bua4lsr

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!