Not column, but row wise.
function b = matchPattern(a)
this is actually pretty fun
I'm not proud of this solution, the scoring system is clearly flawed.
Seems like the filter preventing abuse of @eval needs some work!
Nice! I learned something from you.
This solution is wrong. It detects a common patten among any two rows and not just the first row and other rows.
What is the point?
Matrix indexing with two vectors of indices
Getting the row and column location from a matrix
intersection of matrices
Matlab Basics - Rounding II
It dseon't mettar waht oedrr the lrettes in a wrod are.
Which doors are open?
Find state names that end with the letter A
What is the next step in Conway's Life?
Word Counting and Indexing
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