![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/144562/image.png)
Code for shannon energy envelope?
18 ビュー (過去 30 日間)
古いコメントを表示
hi guys
i have a pcg signal
and i want to using SHANNON ENERGY ENVELOPE for it
but i didnt find the code for it, in 'envelope' documentation there is only peak,rms and analytic function
is there any way to use the shannon energy envelope ?
![shannon.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/144560/shannon.png)
thank you so much
0 件のコメント
採用された回答
Star Strider
2019 年 1 月 17 日
Shannon energy is defined as
, so use an anonymous function such as:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/144562/image.png)
ShannonEnergy = @(x) x.^2 .* log(x.^2);
and then take the peak envelope.
That is what I would do.
5 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!