If any element of the array is less than a number, do some statements

43 views (last 30 days)
If any element of the array is less than a number, do some statements
I want to use this above thing in while loop

Accepted Answer

Walter Roberson
Walter Roberson on 5 May 2019
if any(YourArray(:) < TheValue)
do the statements
end
  9 Comments
Walter Roberson
Walter Roberson on 7 May 2019
Sorry, I am having problems with my vision, and that pdf is too much for me to go through in detail and compare to your code.

Sign in to comment.

More Answers (0)

Categories

Find more on Line Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!