Comparison of complex Numbers



Hi,

I need to test if a certain complex number is already an element of a
vector.

Think of the (complex) vector
nst = [1.2599, -0.62996+1.0911i]

Now, the complex number that I want to test might be
phi(1,1) = 1.2599-0.0000i.

The difference of the imaginary part of those numbers (in this
special case) is

imag(phi(1,1))-imag(nst(1,1)) = -2.2959e-041

Testing
if phi(1, 1) == nst (1,:) doesn't work, since Matlab says that
those numbers aren't equal.

Does anyone know an efficient way to consider those numbers as equal?

Thanks in advance for your replies and for excusing my poor english
;)

Adrian
.



Relevant Pages

  • Re: groesster Spoiler?
    ... >Na, ich sag' mal, bei Filmen des Genres wie "6th Sense", ... the others dann noch ... Adrian ... Prev by Date: ...
    (de.rec.film.misc)
  • Re: 16:9 or 4:3 ?
    ... introduction of Hi-Def. ... Over 90% of recent American programs shown here are ... Adrian A ... Prev by Date: ...
    (uk.tech.digital-tv)
  • Re: Problem Front-/Backend bei Zugriff von anderem Standort
    ... ggf. ... die Verweise prüfen. ... Adrian ... Prev by Date: ...
    (microsoft.public.de.access)
  • Re: Monsterlink
    ... Ich hab jetzt 'nen 21-Zoller. ... MfG ... Adrian ... Prev by Date: ...
    (de.soc.politik.misc)
  • Re: Video Signals
    ... and in RF modulator ... IVT ... Sorry for poor english ... Prev by Date: ...
    (comp.sys.cbm)