Hi !! I want to find area under a sine curve , from interval 0.1 to 0.3.
2 views (last 30 days)
Show older comments

I used the following command to find area under a sine curve , from interval 0.1 to 0.3.
Q=quad(@sin(x), 0.1, 0.3);
But it is not working.
Can somebody please help
0 Comments
Accepted Answer
More Answers (2)
Dimitris Kalogiros
on 20 Aug 2018
You have a syntax error on your command. You must omit parenthesis from sin function. I am giving it to you at the proper format:
Q=quad(@sin, 0.1, 0.3)
0 Comments
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!