Hi !! I want to find area under a sine curve , from interval 0.1 to 0.3.

3 次查看(过去 30 天)
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

采纳的回答

Nick Sharma
Nick Sharma 2018-8-20
Thanks Dimitirs ...it resolved my problem..:)

更多回答(2 个)

Walter Roberson
Walter Roberson 2018-8-20
Q = quad(@sin, 0.1, 0.3);

Dimitris Kalogiros
Dimitris Kalogiros 2018-8-20
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)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by