Help with a matrix problem

5 visualizzazioni (ultimi 30 giorni)
Andres  Romero
Andres Romero il 12 Set 2016
Commentato: Andres Romero il 12 Set 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

Risposta accettata

KSSV
KSSV il 12 Set 2016
A = A(~isinf(A)) ;

Più risposte (0)

Categorie

Scopri di più su Resizing and Reshaping Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by