it is not easy to reduce the scale of code like this. something in this solution is quite inspiring. THX.
Find common elements in matrix rows
Specific Element Count
Decode a simplified barcode
Make a run-length companion vector
Pi Digit Probability
Fill-a-pix - Solution Checker
Lights Out 11 - 5x5, with wrapping, x moves
Lights Out 15 - 5x5, broken buttons I
Pattern Recognition 3 - Variable Unit and Array Length (including cell arrays)
Divisible by 15
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