From a usability point of view, returning a string to indicate nothing found is probably the worst. an empty value or 0 would be much better.
Guillaume, I would say that that depends upon the intended 'audience' for the output.
Return a list sorted by number of occurrences
1514 Solvers
Cell Counting: How Many Draws?
598 Solvers
5366 Solvers
242 Solvers
181 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!