MATLAB: How to find entropy of X.

entropy

how i implement this entropy formula(PNG file atached) in matlab code
my X is Column c in xlsx file(attached) i want to find for 1000 value

Best Answer

You can try entropy() or entropyfilt() in the Image Processing Toolbox, if you have it. entropyfilt() does a sliding window computation of entropy whereas entropy does it for the whole array.