How to replace values less than equal to zero values in a matrix?
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (1)
Sai Naga Raju
am 3 Jan. 2021
0 Stimmen
matrix (matrix<=0)= NaN
1 Kommentar
laith awwad
am 21 Apr. 2021
Bearbeitet: laith awwad
am 21 Apr. 2021
HOW TO NAME THE VARIABLE BECAUSE IF I WRIGHT IT GIVES ME AN ERROR FOR EXAMPLE e =matrix (matrix<=0)= NaN;
Kategorien
Mehr zu Numeric Solvers finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!