# Integral of sinx in MatLab

1. Aug 12, 2010

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?

2. Aug 12, 2010

### abc007

syms x
fun=inline(sin(x))