MathGroup Archive 2003

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

Search the Archive

Re: Export Complex Matrices

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40747] Re: Export Complex Matrices
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 16 Apr 2003 01:35:01 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <b7ge8q$djp$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

I don't know for what system you have to export the data.
If you just want to save it and reread it in Mathematica
Put[COO,"data.m"]

and 

COO=Get["data.m"]

may be a good solution.
The CSV format may also help you

Export["COO.dat", COO, "CSV"];
!! COO.dat

gives

2,3,2.E-9
3,2,2.*^-9*I

Regards
  Jens

Kyriakos Chourdakis wrote:
> 
> Dear all,
> 
> I am trying to export matrices of the form
> 
> COO = {{2, 3, 2. 10^-9}, {3, 2, 2. 10^-9 I}}
> 
> with I the imaginary unit. It is the coordinate
> representation of large sparse matrices. The first two
> columns are the coordinates, and the third is the
> value. When I use the simple
> 
> Export["COO.dat",COO]
> 
> I guess Mathematica recognises the imaginary part as string,
> and exports
> 
> 2   3   2.e-9
>              -9
> 3   2   2. 10   I
> 
> instead of
> 
> 2   3   2.e-9
> 3   2   2.e-9 I
> 
> I am sure there is a simple way to get around the
> problem, but I can't find it..
> 
> I am using Mathematica 4.0 on Windows Me.
> 
> Best
> 
> K.
> 
> __________________________________________________
> Yahoo! Plus
> For a better Internet experience
> http://www.yahoo.co.uk/btoffer


  • Prev by Date: Re: Problem solving equation
  • Next by Date: RE: Re: Calculating Easter
  • Previous by thread: Export Complex Matrices
  • Next by thread: Re: Export Complex Matrices