hey maybe someone knows a way to separete Inf and -Inf values? from a vector A = [1;Inf;-Inf;2;6;3] have a new matrix A = [2;6;3]; Thanks if someone can help

 Respuesta aceptada

KSSV
KSSV el 12 de Sept. de 2016

1 voto

A = A(~isinf(A)) ;

Más respuestas (0)

Categorías

Preguntada:

el 12 de Sept. de 2016

Comentada:

el 12 de Sept. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by