Clear Filters
Clear Filters

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

1 view (last 30 days)
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.

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 17 May 2016
A(A>100)=nan

More Answers (0)

Categories

Find more on Multidimensional Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!