Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 17 Mag 2016
A(A>100)=nan

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by