What is the command for calculating expectation in MATLAB?
Show older comments
Part of my project is to use MATLAB to verify the correctness of the hand calculations, I'm attempting to verify Problem 3 of the project but I can't seem to find a way to calculate "Expectation" in MATLAB. Attached I have included the instruction portion to show what the professor is asking. Any help would be appreciated, thanks!

Accepted Answer
More Answers (0)
Categories
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!