How do you find and evaluate integrals in MatLab?

  • Context: MATLAB 
  • Thread starter Thread starter Ali Asadullah
  • Start date Start date
  • Tags Tags
    Integral Matlab
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 6K views
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)