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

arrayelement

If any element of the array is less than a number, do some statements
I want to use this above thing in while loop

Best Answer

if any(YourArray(:) < TheValue)
do the statements
end