Removing NaN from matrix

2 visualizaciones (últimos 30 días)
John Good
John Good el 27 de Nov. de 2020
Respondida: Sulaymon Eshkabilov el 27 de Nov. de 2020
I am trying to import an excel but the blank cells are coming through as NaN if I class them as a number which I need to do. I have attached a photo. I need the empty cells to be recognised as nothing, not 0 or NaN.

Respuestas (1)

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 27 de Nov. de 2020
Use isnan() and assign the value you want or remove the points containing NaNs. See help how to employ it: mathworks.com/help/matlab/ref/isnan.html?searchHighlight=isnan&s_tid=srchtitle

Categorías

Más información sobre Shifting and Sorting Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by