MATLAB: How to replace numbers that are ‘greater than or equal to’ a specific number and replace them with zero’s.

if statementloopmatrix

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

Best Answer

a(a>=99)=0