Cody

Problem 10. Determine whether a vector is monotonically increasing

Created by Cody Team in Cody Challenge

Return true if the elements of the input vector increase monotonically (i.e. each element is larger than the previous). Return false otherwise.

Examples:

 Input  x = [-3 0 7]
 Output tf is true
 Input  x = [2 2]
 Output tf is false

Solution Stats

28.21% Correct | 71.79% Incorrect
Last solution submitted on Jul 23, 2018

Problem Comments

Solution Comments

Recent Solvers7349

Discover MakerZone

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

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!