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
The Goldbach Conjecture
Find the peak 3n+1 sequence value
Find Rotated Substring
Largest Twin Primes
last n digit of a power function
Sum of digit range
Fill an array given a sum and array length values
Sum of Dividend Digits
Flip the right coin to survive!
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