There is something very strange about the contest system RandStream... it keeps reverting to a 'legacy' mode randomly. I submitted the same solution several times in a row and kept getting an error since the legacy mode has the State in a cell format. Finally I lucked out and got it to default back to the standard format.
I observed the same effect, it is rather interesting, my guess was that other people submissions including rand('state',...) commands might be producing this (I imagine we should be sharing a matlab session for this to happen, the context might be running on some sort of distributed environment, I am not sure about the details...)
It can be done in Size=1
your hacking skills are unmistakable *bow*
I'm not sure this code is always right because the help says that I should not depend on the format of State property.
I'm not sure this code is always correct because the help says that I should not depend on the format of State property.
very cool, traveling to the past!
haha, we came up with the same solution just about. awesome!
Calculate the Levenshtein distance between two strings
Back to basics 5 - Clipboard
Back to basics 17 - white space
Return the first and last character of a string
Are all the three given point in the same line?
Smallest distance between a point and a rectangle
the fly, the train, the second train, and their Zeno's paradox
singularity 2.0 (easier)
Capture the flag(s)
Spherical surface triangulation
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