Nice one-liner regexprep with skillful reading of the input string format. The processing and output string creation is an efficient marvel.
Find the two most distant points
Split a string into chunks of specified length
Magic is simple (for beginners)
Create a random logical vector of N elements of which M are true.
GJam 2014 Qualifier: Deceitful War (Small)
Mastermind IV: Optimal Solver - max of 5 guesses
Perform Rubik's Cube Moves
Kryptos - CIA Cypher Sculpture: Vigenere Encryption
BattleShip - Petty Officer (Level 2)
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