Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!

Problem 1168. Return 'on' or 'off'

Created by J-G van der Toorn

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


Problem Group

Solution Statistics

165 correct solutions 83 incorrect solutions
Last solution submitted on Oct 06, 2015

Problem Comments