Effacer les filtres
Effacer les filtres

I'm new to MATLAB! I need a little help to develop a code for this problem.

1 vue (au cours des 30 derniers jours)
Jonathan Diaz
Jonathan Diaz le 21 Avr 2017
How do I start this.. Here is the question..
Develop a Matlab program that allows you to plot the entropy of a source with variable output probabilities. We wish to observe that the maximum source entropy does indeed occur when the source outputs are equally likely. Start with a simple two-output source [s1; s2] with respective probabilities [a; 1-a] and plot the entropy as a function of the parameter a. Then consider more complex cases such as a three output source [s1; s2; s3] with respective probabilities [a; b; 1 - a - b]. Be creative with the manner in which the results are displayed.

Réponses (1)

Image Analyst
Image Analyst le 21 Avr 2017
I don't know what your sources put out. Is it a list of N rows by two columns (a column for s1 and a column for s2)? Is it somehow related to something you were learning in a course?
If you have the Image Processing Toolbox, there is the function entropy() so you can try that.
For creating output "in a creative manner" I think that means they're pretty flexible in accepting whatever kind of output you want, so it looks like you can do it however you want. It can range from simply leaving off the semicolon to spit out the variable value to the command window, to using fprintf() to make more custom-formatted output, to using xlwwrite() or csvwrite() or writetable() to create a file on dis.

Catégories

En savoir plus sur Large Files and Big Data dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by