MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: ReadList of Complex Numbers


Srikanth Raghavan wrote:
> 
> Hello,
>         I have a data file of an array of complex numbers created by a
> Fortran program. I want Mathematica to read this data file as an array
> of complex numbers recognizing each row as a complex number. I have not
> been able to find any way of doing this. Could anyone help? Please reply
> to my e mail address in addition to posting the reply to this newsgroup
> if possible.
>         Thanks
>         Srikanth
> 
> ---------------------------------------------------------------------------
> 
> Srikanth Raghavan
> Rochester Theory Center for
> Optical Science and Engineering
> Dept. of Physics and Astronomy          email: srirag at pas.rochester.edu
> University of Rochester
> Rochester, NY 14627
> 
> ---------------------------------------------------------------------------
ReadList["filename",Complex[Real,Real]]
should do it.

Bye, Bojan

-- 
-------------------------------------------------------------
Bojan Bistrovic,                       bojanb at physics.odu.edu  
Old Dominion University, Physics Department,      Norfolk, VA
-------------------------------------------------------------


  • Prev by Date: Re: Simplify[] shortcoming
  • Next by Date: Re: Problem with Display and ImageSize
  • Previous by thread: ReadList of Complex Numbers
  • Next by thread: Re: ReadList of Complex Numbers