Risposta accettata

Sulaymon Eshkabilov
Sulaymon Eshkabilov il 9 Giu 2021

0 voti

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 Commenti

Let's say your imported data has two columns of data (Col 1 is X and Col 2 is Y) representing the selected curve. So then, the area under the curve will be: trapz(X, Y)
amalina ibrahim
amalina ibrahim il 16 Giu 2021
thank you for giving me an idea. it helps me a lot
Sulaymon Eshkabilov
Sulaymon Eshkabilov il 16 Giu 2021
Most welcome!

Accedi per commentare.

Più risposte (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov il 9 Giu 2021

0 voti

Use trapz() that gives you the numerical integration under the curve.

1 Commento

amalina ibrahim
amalina ibrahim il 9 Giu 2021
i dont really understand how to apply it. mind to share ?

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by