How can i write condition "x is not less then zero" in while loop

15 views (last 30 days)
while (x~<-1)

Accepted Answer

Thorsten
Thorsten on 22 Sep 2015
while x >= 0

More Answers (1)

Jan
Jan on 22 Sep 2015
Edited: Jan on 22 Sep 2015
while not(x < 0)
But Thorsten's "x >= 0" is nicer.

Categories

Find more on Loops and Conditional Statements in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!