Informationain Gain in Matlab

Hello!
Attached is a formula for calculating information gain of a text file.
Can anyone please tell me that how can we find probabilities and log in matlab?
Is there any built-in function(s)?
Actually I have to transform attached formula in loop in matlab.
Thanks a lot

Categories

Asked:

on 10 Feb 2014

Answered:

on 24 Mar 2015

Community Treasure Hunt

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

Start Hunting!