Clear Filters
Clear Filters

How can I get the energy of a wave?

6 views (last 30 days)
Li-Wun
Li-Wun on 18 May 2024
Commented: Li-Wun on 20 May 2024
I used signal analyzer to analyze a wave of the sound.
Now I would like to calculate the energy of the sound.
My idea is to firstly squared the amplitude and then integrated the whole wave.
I have squared the amplitude and got the diagram of squared amplitude v.s. time.
However, I don't know how to integrate this wave without having a wavefunction.
How could I do? Thank you.
  3 Comments
Paul
Paul on 19 May 2024
Yes, that's the standard definition of the energy in the discrete-time signal as long as the elements of data are real and it's assumed that the signal is zero for indices outside those covered by data.

Sign in to comment.

Answers (1)

Paul
Paul on 18 May 2024
Hi Li-Wun,
This answer may be what's needed. If not, feel free to post back here with follow-up questions, preferably with example code.

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!