Hi everyone,

I don't have programming background, so need some help to develop a MATlab program that can plot the entropy of a source with variable output probabilities.
The objective is to observe that the maximum source entropy does indeed occur when the source outputs are equally likely. And need to start first with a simple two-output source [m1, m2] with respective probabilities [a, 1 − a] to plot the entropy as a function of the parameter a. Then to consider more complex cases such as a three output source [m1, m2, m3] with respective probabilities [a, b, 1 − a − b].

Your help will be highly appreciated friends. Thanks in advance