How to replace numbers that are 'greater than or equal to' a specific number and replace them with zero's.
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ruby
le 10 Nov 2013
Réponse apportée : Jos (10584)
le 10 Nov 2013
I know this sound quite straight forward but I'm confused with the 'greater than or equal to' part.
If I have a matrix of random numbers, how can i find all the numbers that are 'greater than or equal to' 99 and replace them with zero's.
Thank you
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 10 Nov 2013
Modifié(e) : Azzi Abdelmalek
le 10 Nov 2013
a(a>=99)=0
0 commentaires
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Get Started with MATLAB 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!