How to replace numbers that are 'greater than or equal to' a specific number and replace them with zero's.
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ruby
el 10 de Nov. de 2013
Respondida: Jos (10584)
el 10 de Nov. de 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 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 10 de Nov. de 2013
Editada: Azzi Abdelmalek
el 10 de Nov. de 2013
a(a>=99)=0
0 comentarios
Más respuestas (1)
Ver también
Categorías
Más información sobre Get Started with MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!