Borrar filtros
Borrar filtros

How to ignore values or set to NaN while keeping matrix same size?

1 visualización (últimos 30 días)
I have a 2400 x 2400 matrix, 'alb_short', with values ranging from 1-100, but with many outliers over 100 which need to be ignored so I can plot the results.
How can I ignore these large values or set them to NaN so my matrix stays at its original 2400x2400 size?
Thank you.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 17 de Mayo de 2016
A(A>100)=nan

Más respuestas (0)

Categorías

Más información sobre Multidimensional Arrays 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!

Translated by