Hello, William. I like very much the originality & especially the efficiency of your approach here. Am I correct in thinking that the existing code would struggle to correctly decode a message that was encoded from (say) "Beware of the Sasquatch Man's involvement in Operation Phoenix"? [I don't want to explain this, to avoid giving too many clues to others. But I hope you get my point.] Although I am confident you could tweak your code (if necessary) to handle such cases. —DIV
Return the largest number that is adjacent to a zero
Find common elements in matrix rows
Rotate input square matrix 90 degrees CCW without rot90
Divisible by 4
Make your own Test Suite (part 0)
Just take it easy for a second or two!
Rate of event occurence: find percentiles of the distribution (for smallish rates)
Testing for randomness: uniform distribution of real numbers (distribution checking)
Comparison of floating-point numbers (singles)
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