Take the array which is less than 3

1 vue (au cours des 30 derniers jours)
fyza affandi
fyza affandi le 4 Jan 2019
Commenté : madhan ravi le 4 Jan 2019
I have this marix
A= [ 1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1 3 3 3]
How can I take only value less than 3? The result should be :
A=[1 0 1 0 1 0 1 1 1 1 1 1 0 0 0 1 0 1]
I use this code , but its wrong
B=A(1:find(A==3)(1))

Réponse acceptée

madhan ravi
madhan ravi le 4 Jan 2019
  2 commentaires
fyza affandi
fyza affandi le 4 Jan 2019
Thank you very much
madhan ravi
madhan ravi le 4 Jan 2019
Anytime :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays 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