How to replace numbers that are 'greater than or equal to' a specific number and replace them with zero's.

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

Categorie

Scopri di più su Loops and Conditional Statements in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by