area under a curve ?

1 回表示 (過去 30 日間)
amalina ibrahim
amalina ibrahim 2021 年 6 月 9 日
  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