I'm new to MATLAB! I need a little help to develop a code for this problem.
조회 수: 1 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
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.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Large Files and Big Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!