フィルターのクリア

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

1 回表示 (過去 30 日間)
Jonathan Diaz
Jonathan Diaz 2017 年 4 月 21 日
回答済み: Image Analyst 2017 年 4 月 21 日
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.

回答 (1 件)

Image Analyst
Image Analyst 2017 年 4 月 21 日
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.

カテゴリ

Help Center および File ExchangeLarge Files and Big Data についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by