Error in entropy function
3 次查看(过去 30 天)
显示 更早的评论
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{:});
0 个评论
回答(1 个)
Walter Roberson
2020-10-27
The entropy function only permits a single parameter.
You are probably thinking of the wentropy function, which does permit 'shannon' as a second parameter.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Pattern Recognition and Classification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!