Error in entropy function
Mostrar comentarios más antiguos
I use the entropy function given belwo for my data, but Matlab gives me an error.
e=entropy(x,'shannon')
Matlab gives me this error:
Error using entropy>ParseInputs (line 58)
Too many input arguments.
Error in entropy (line 38)
I = ParseInputs(varargin{:});
Respuestas (1)
Walter Roberson
el 27 de Oct. de 2020
0 votos
The entropy function only permits a single parameter.
You are probably thinking of the wentropy function, which does permit 'shannon' as a second parameter.
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!