Not the cleanest code (I would have used dtmc if the corresponding toolbox was available, and I should definitively improve the code quality itself and vectorize it a little bit)
The problem was fun, thanks :-)
Oleksandr Denysenko, you get no credit for hacking the problem. Only legitimate solutions gain credit.
Persistence pays off! :-)
Find common elements in matrix rows
1275 Solvers
567 Solvers
274 Solvers
Back to basics 13 - Input variables
235 Solvers
252 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!