replace minimum value of each column with nan
2 views (last 30 days)
Show older comments
Leela Sai Krishna
on 18 Mar 2019
Commented: madhan ravi
on 18 Mar 2019
i have a 10*10 matrix.
How to replace the minimum value from each column with nans.
ex; [10,5
2,8
8,1];
the desired out put should be like
[10,5
nan,8
8,nan];
thanks
0 Comments
Accepted Answer
madhan ravi
on 18 Mar 2019
Edited: madhan ravi
on 18 Mar 2019
M(M==min(M))=nan % where M is your matrix
More Answers (0)
See Also
Categories
Find more on NaNs 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!