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

14 vues (au cours des 30 derniers jours)
If any element of the array is less than a number, do some statements
I want to use this above thing in while loop

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Mai 2019
if any(YourArray(:) < TheValue)
do the statements
end
  9 commentaires
Walter Roberson
Walter Roberson le 7 Mai 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.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Environment and Settings dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by