replace minimum value of each column with nan
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
madhan ravi
2019-3-18
编辑:madhan ravi
2019-3-18
M(M==min(M))=nan % where M is your matrix
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 NaNs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!