Re: Real and complex arrays
- From: morten.langer@xxxxxxxxx
- Date: 25 Apr 2006 16:59:52 -0700
Hi
i believe you are right. Since I posted I have gotten a little further.
REAL(cmplxNo) does indeed return a real number (i can see that by
printing it to the screen), but when I try to assign it to a place in a
real array, I only see a 0 in the array. So the assignment somehow
fails..? This is the code snippet:
real rTst
complex magSignalComplex(512)
dimension magSignalReal(512)
do i=1,512
magSignalComplex(i) = abs(signalPartFreq(i))
rTst = real(magSignalComplex(i))
magSignalReal(i) = rTst
enddo
So, the magSignalReal array only contains zeros. If I print rTst to the
screen before the assignment, it looks fine - like a real number.. What
could be the matter?
thanks!!
M.L.
.
- Follow-Ups:
- Re: Real and complex arrays
- From: Brooks Moses
- Re: Real and complex arrays
- From: glen herrmannsfeldt
- Re: Real and complex arrays
- References:
- Real and complex arrays
- From: morten . langer
- Re: Real and complex arrays
- From: glen herrmannsfeldt
- Real and complex arrays
- Prev by Date: Re: Real and complex arrays
- Next by Date: Re: Real and complex arrays
- Previous by thread: Re: Real and complex arrays
- Next by thread: Re: Real and complex arrays
- Index(es):
Relevant Pages
|
|