Cody

Problem 10. Determine whether a vector is monotonically increasing

Created by Cody Team in Community

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

27.96% Correct | 72.04% Incorrect
Last solution submitted on Feb 23, 2019

Problem Comments

Solution Comments

Recent Solvers7959

Suggested Problems

More from this Author95

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!