MATLAB Discover How to Find and Evaluate the Integral of sinx in MatLab

  • Thread starter Thread starter Ali Asadullah
  • Start date Start date
  • Tags Tags
    Integral Matlab
Ali Asadullah
Messages
99
Reaction score
0
Please tell me the code or whatever we call it for finding the integral of sinx in MatLab?
Also how to evaluate definite integral from, say, 1 to 2?
 
Physics news on Phys.org
syms x
fun=inline(sin(x))
int=quad(fun,1,2)
 

Similar threads

Replies
32
Views
4K
Replies
2
Views
3K
Replies
5
Views
3K
Replies
4
Views
1K
Replies
2
Views
2K
Replies
44
Views
6K
Back
Top