This is the code that generates BBC's Sherlock series' character or word matching effect.
To understand the effect, please click on the following image to watch a short clip I made on YouTube:
Step-by-Step Guide:
- The user calls the function with the word or sentence they want to apply the effect to.
- Once the function called, the user can see the effect in the command window.
- As of now, the code follows a brute force algorithm and not a specialized trial-and-error method.
Future Developments
- Eliminate the failed characters from the pool to speed it up.
- Add an option to make sure the letters match from left-to-right and not in random order (for artistic purposes).
- Make it executable outside of MATLAB.
Examples:
- A simple example. "Maymun" means "Monkey" in Turkish: https://www.youtube.com/watch?v=92k2Te2oXtg
- A complex example. "Monkeys under selective pressure can write Hamlet, you FOOL" in Turkish*: https://www.youtube.com/watch?v=92k2Te2oXtg
- If you don't know what I'm referring to, please refer to the Weasel Program: https://www.wikiwand.com/en/Weasel_program