Azzera filtri
Azzera filtri

removing a complex infinity

2 visualizzazioni (ultimi 30 giorni)
Tom
Tom il 13 Nov 2013
Commentato: Tom il 13 Nov 2013
If I have elements in a matrix which are 0 + Infi, what is the best way to delete these elements?
I have tried
x(x==0+infi) = [];
but this doesn't seem to work.
kind regards,
Tom

Risposte (1)

Andrei Bobrov
Andrei Bobrov il 13 Nov 2013
x(real(x)==0&isinf(imag(x))) = [];
  1 Commento
Tom
Tom il 13 Nov 2013
Thanks, but this seems to be deleting every element in the matrix...

Accedi per commentare.

Categorie

Scopri di più su Mathematics 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