removing a complex infinity

1 visualización (últimos 30 días)
Tom
Tom el 13 de Nov. de 2013
Comentada: Tom el 13 de Nov. de 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

Respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating 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