It's not clear to me what select_state is supposed to return. I would have thought it was one of the state (i.e. one of 1, 2, 3, ...) but it's not what the test suite tests for.
Returning the passed in probability with a very small deviation is enough to pass the test suit. This doesn't seem right.
Guillaume, i changed the problem output to states rather than the probability values. This way looks better i presume. Thanks for the comment. Cheers
A neat implementation of randsrc in the communication system toolbox
well done! thanks for the effort.
Alfonso, you are good! Congrats
Which doors are open?
How long is the longest prime diagonal?
Relative ratio of "1" in binary number
Remove element(s) from cell array
Check that number is whole number
Flip the right coin to survive!
Best Square-Shaped Grid for Subplot
last n digit of a power function
Fill an array given a sum and array length values
Sum of digit range
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office