# How to integrate the discrete data?

10 Ansichten (letzte 30 Tage)
Vinay Killamsetty am 17 Okt. 2021
Hi,
I am having a 3 2d matrices
1st matrix is of size NxM corresponds to the X-cordinates
2nd matrix is of size NxM corresponds to the Y-cordinates
3rd matrix is of size NxM corresponds to the Power at the above designated cordinates
How to find the Total power and total power above half maximum?
##### 2 KommentareKeine anzeigenKeine ausblenden
Jan am 17 Okt. 2021
Isn't the total power simply the sum of the powers? The half maximum of what?
Vinay Killamsetty am 24 Okt. 2021
Yeah, thats true.

Melden Sie sich an, um zu kommentieren.

### Akzeptierte Antwort

Prachi Kulkarni am 21 Okt. 2021
Hi,
Integration is equivalent to summation in the discrete domain. So, if P is your NxM power matrix, you can compute the total power and total power above half maximum as follows, assuming the power is in watts.
totalPower = sum(P,'all');
maxPower = max(P(:));
totalPowerHalfMaximum = sum(P(P>0.5*maxPower));
##### 0 Kommentare-2 ältere Kommentare anzeigen-2 ältere Kommentare ausblenden

Melden Sie sich an, um zu kommentieren.

### Kategorien

Mehr zu Power and Energy Systems finden Sie in Help Center und File Exchange

R2021a

### Community Treasure Hunt

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

Start Hunting!

Translated by