Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

complex numbers

Status
Not open for further replies.

zappedagain

Electrical
Joined
Jul 19, 2005
Messages
1,074
Location
US
Is there a way to format complex numbers in Excel? I just ran a Fast Fourier Transform (FFT) and the result is a column of complex numbers. Excel shows the real and imaginary parts out to about 13 places so I need a wide column to see it.
 
Hi zappedagain:

Just thinking aloud here ... would using

=COMPLEX(real_num,i_num,suffix)

help?




Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
ANAND Enterprises LLC
 
something like this worked:
=COMPLEX(ROUND(PI(),4),ROUND(PI(),4))

which means that you'll need something like

=complex(round(imreal(YOURVALUE),4),round(imaginary(YOURVALUE),4))

so, decompose to real and imaginary, apply the round function and recompose into imaginary.

TTFN

FAQ731-376


 
It looks like another one of those gaping holes in exel.

Along the lines of what was suggested above.... perhaps you store your complex numbers in column B with a very narrow width (don't even look at C for values), then use imreal() to display real part in column C and imaginary() to display imaginary part in column D... then use normal formatting on columns C and D

=====================================
Eng-tips forums: The best place on the web for engineering discussions.
 
Thanks all. Those are helpful solutions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top