How to replace values less than equal to zero values in a matrix?
显示 更早的评论
I have a marix of 44450*8 dimention, which contain some zero and negative values, I want to replace them with NaN. how to do that?
采纳的回答
更多回答(1 个)
Sai Naga Raju
2021-1-3
0 个投票
matrix (matrix<=0)= NaN
1 个评论
laith awwad
2021-4-21
编辑:laith awwad
2021-4-21
HOW TO NAME THE VARIABLE BECAUSE IF I WRIGHT IT GIVES ME AN ERROR FOR EXAMPLE e =matrix (matrix<=0)= NaN;
类别
在 帮助中心 和 File Exchange 中查找有关 Numeric Solvers 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!