Replacing elements in a table
7 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Wesso
el 16 de Mzo. de 2019
Respondida: madhan ravi
el 16 de Mzo. de 2019
I have Table A that constitutes of arrays, Some of the columns were computed using algebraic equations. This yielded certain numbers to be Inf and -Inf
How can I remove these from A and replace them with NaNs?
0 comentarios
Respuesta aceptada
madhan ravi
el 16 de Mzo. de 2019
A=table2array(A);
A(isinf(A)|-isinf(A))=nan;
A=array2table(A)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical 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!