How to eliminate rows with NaN elements?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mr M.
el 21 de Abr. de 2015
Respondida: James Tursa
el 21 de Abr. de 2015
If there is at least one NaN value in a row, I would like to delete that row from my matrix.
0 comentarios
Respuesta aceptada
James Tursa
el 21 de Abr. de 2015
rows = any(isnan(myMatrix),2);
myMatrix(rows,:) = [];
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre NaNs en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!