When the input is true, return 'on', otherwise, return 'off'.

Solution Stats

916 Solutions

504 Solvers

Last Solution submitted on Dec 26, 2025

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers504

Suggested Problems

More from this Author31

Problem Tags

Community Treasure Hunt

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

Start Hunting!