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

3 ビュー (過去 30 日間)
Nick Sharma
Nick Sharma 2018 年 8 月 20 日
回答済み: Nick Sharma 2018 年 8 月 20 日
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 Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by