How to replace values less than ...
17 views (last 30 days)
DGM on 21 Apr 2021
Assuming you have a matrix A and you want to make a copy B which has all nonpositive content replaced with NaN
B=A; % make a copy
B(B<=0)=NaN; % replace the values
Trying to do something like
isn't going to work.