Help with a matrix problem

1 view (last 30 days)
Andres  Romero
Andres Romero on 12 Sep 2016
Commented: Andres Romero on 12 Sep 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

Accepted Answer

KSSV
KSSV on 12 Sep 2016
A = A(~isinf(A)) ;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!