For a given string sentence, determine if the string word 'please' is present or not. If so, return the string 'OK', else return '...'. The function should not be case sensitive. Please do not use the strfind or regexp/regexpi functions in your solution.

Example:

reply = please('Help me with my homework!')
reply = '...'
reply = please('Please help me with my homework')
reply = 'OK'

Solution Stats

246 Solutions

66 Solvers

Last Solution submitted on Jan 04, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers66

Suggested Problems

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!