필터 지우기
필터 지우기

entropy of a signal

조회 수: 169 (최근 30일)
siddhartha chandel
siddhartha chandel 2012년 6월 27일
답변: dany katamba mpoyi 2022년 5월 4일
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
divya pawar
divya pawar 2020년 2월 23일
The entropy function given in Matlab is for image processing, so for other signals simply the formula
entropy= -sum(p*log2(p));
If probabilities are not known , you can use histogram to find them
h1=histogram(your_signal, 'Normalization', 'Probability');
h1.Values;
mamta p
mamta p 2020년 5월 21일
편집: mamta p 2020년 5월 21일
thank you Divya Pawar mam.

댓글을 달려면 로그인하십시오.

답변 (2개)

maria
maria 2012년 9월 25일
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 2022년 5월 4일
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

카테고리

Help CenterFile Exchange에서 Get Started with Signal Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by