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
Find the two most distant points
Remove the air bubbles
Find the maximum number of decimal places in a set of numbers
Matrix with different incremental runs
Set the array elements whose value is 13 to 0
last n digit of a power function
Sum of digit range
Best Square-Shaped Grid for Subplot
Sum of Dividend Digits
Fill an array given a sum and array length values
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