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
Without the French accent please!
Find nearest prime number less than input number
Convert a Cell Array into an Array
Flip the right coin to survive!
Best Square-Shaped Grid for Subplot
Fill an array given a sum and array length values
Sum of digit range
Sum of Dividend Digits
Find the treasures in MATLAB Central and discover how the community can help you!
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