Help with a matrix problem

5 visualizaciones (últimos 30 días)
Andres  Romero
Andres Romero el 12 de Sept. de 2016
Comentada: Andres Romero el 12 de Sept. de 2016
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
A = A(~isinf(A)) ;

Más respuestas (0)

Categorías

Más información sobre Resizing and Reshaping Matrices 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!

Translated by