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
Tic Tac Toe FTW
The Tower of Hanoi
Swap the input arguments
Back to basics 3 - Temp Directory
Find last zero for each column
Sum of Dividend Digits
Best Square-Shaped Grid for Subplot
Flip the right coin to survive!
last n digit of a power function
Sum of digit range
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