How to replace values less than equal to zero values in a matrix?

32 visualizaciones (últimos 30 días)
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?

Respuesta aceptada

Adam
Adam el 14 de Nov. de 2018
myMatrix( myMatrix <= 0 ) = NaN

Más respuestas (1)

Sai Naga Raju
Sai Naga Raju el 3 de En. de 2021
matrix (matrix<=0)= NaN
  1 comentario
laith awwad
laith awwad el 21 de Abr. de 2021
Editada: laith awwad el 21 de Abr. de 2021
HOW TO NAME THE VARIABLE BECAUSE IF I WRIGHT IT GIVES ME AN ERROR FOR EXAMPLE e =matrix (matrix<=0)= NaN;

Iniciar sesión para comentar.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by