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

조회 수: 2 (최근 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 CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by