New to MATLAB!! Here is the assignment!

I'm trying to develop a MATLAB program that allows you to plot the entropy of a source with variable output probabilities. Look under the * Prelab* Here is an image of the code, I don't really understand it, can you explain it to me?

3 Comments

Stephen23
Stephen23 on 24 Apr 2017
Edited: Stephen23 on 24 Apr 2017
@Jonathan Diaz: you wrote some code, and you want someone to explain your own code to you?
Usually people try to write code that they understand: it makes it much more reliable.
Note that saving or altering code in any program installation directory is an extremely bad idea.
Have a read here and here. It will greatly improve your chances of getting an answer.
I strongly recommend you avoid storing your code in the bin directory of your MATLAB installation. Put it in your documents folder, C:\Users\das\Documents, or a subdirectory dedicated to storing your homework solutions, like C:\Users\das\Documents\homework.

Answers (0)

This question is closed.

Asked:

on 24 Apr 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!