entropy of a signal

393 views (last 30 days)
siddhartha chandel
siddhartha chandel on 27 Jun 2012
Hello every body . Please give me command for entropy calculation of a signal. How we can calculate using wentropy function in wavelet? Thanks in advance .
  2 Comments
mamta p
mamta p on 21 May 2020
Edited: mamta p on 21 May 2020
thank you Divya Pawar mam.

Sign in to comment.

Answers (2)

maria
maria on 25 Sep 2012
Hi! For find the value of entropy for a signal 1-dimensional, can use:
p = hist(signal length);
entropy = -sum(p.*log2(p));
Do this solve your question?

dany katamba mpoyi
dany katamba mpoyi on 4 May 2022
I = randn(10000000,1);
p = hist(I,1000000);
% remove zero entries in p
p(p==0) = [];
% normalize p so that sum(p) is one.
p = p ./ numel(I);
Eg = -sum(p.*log(p));
I = randn(10000000,1);
p = hist(I,1000000);
% remove zero entries in p
p(p==0) = [];
% normalize p so that sum(p) is one.
p = p ./ numel(I);
Et = -sum(p.*log(p));
negE=Et-Eg

Categories

Find more on Descriptive Statistics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!