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 1836. Negation and new variables

Inspired by Problem 1827 by Andrew Newell.

Write a function that has the following property:







The test suite is simple. The goal is just to obtain a general method.

Problem Group

Solution Statistics

19 correct solutions 21 incorrect solutions
Last solution submitted on Jan 29, 2015

Problem Comments