Shannon Information Entropy Calculation in a dataset
Mostra commenti meno recenti
I have a dataset where column A corresponds to participant id, and column B corresponds to a string consisting of certain numbers.
Example:

My aim is to calculate Shannon Information Entropy (see Shannon Information Entropy for formula) for a string corresponding to each participant, and then output the values into a csv file where column A would correspond to participant id and column B to Shannon entropy value for each participant.
I have tried different approaches but have not been successful so far, so I would appreciate any advice that could point me in the right direction.
Thanks!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!