MATLAB Answers

Error in entropy function

7 views (last 30 days)
Sadiq Akbar
Sadiq Akbar on 27 Oct 2020
Commented: Sadiq Akbar on 27 Oct 2020
I use the entropy function given belwo for my data, but Matlab gives me an error.
Matlab gives me this error:
Error using entropy>ParseInputs (line 58)
Too many input arguments.
Error in entropy (line 38)
I = ParseInputs(varargin{:});


Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 27 Oct 2020
The entropy function only permits a single parameter.
You are probably thinking of the wentropy function, which does permit 'shannon' as a second parameter.


Sadiq Akbar
Sadiq Akbar on 27 Oct 2020
Thank you dear Walter Roberson for your response.
Sadiq Akbar
Sadiq Akbar on 27 Oct 2020
Dear Walter Roberson my code became now like this:
clear all
load 2sn0_sorted;
but it gives me a -ve value. Is it possible?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by