area under a curve ?

조회 수: 7 (최근 30일)
amalina ibrahim
amalina ibrahim 2021년 6월 9일
댓글: Sulaymon Eshkabilov 2021년 6월 16일
  댓글 수: 1
amalina ibrahim
amalina ibrahim 2021년 6월 9일
can anyone help me the exact coding for area under a curve ?

댓글을 달려면 로그인하십시오.

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 6월 9일
This plot is from Simulink Scope as shown here. You'd need to get the data imported into MATLAB woskpace, select the necessary region of the imported data and then perform summation with trapz().
  댓글 수: 3
amalina ibrahim
amalina ibrahim 2021년 6월 16일
thank you for giving me an idea. it helps me a lot
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 6월 16일
Most welcome!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021년 6월 9일
Use trapz() that gives you the numerical integration under the curve.
  댓글 수: 1
amalina ibrahim
amalina ibrahim 2021년 6월 9일
i dont really understand how to apply it. mind to share ?

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by