Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Export

  • To: mathgroup at smc.vnet.net
  • Subject: [mg128105] Export
  • From: Adel Elsabbagh <aelsabbagh at gmail.com>
  • Date: Sun, 16 Sep 2012 03:23:34 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net

Dear friends,

I am trying to export a 30*30 matrix (M) with entries function in x and y
to a txt file in order to use it by another program. I am using:
Export["filename.txt",M]. I have two problems:
1. I want to reduce the precision of the coefficients of x & y. When I use
N[M,n] or SetPrecision[M,n], the precision is reduced within the Notebook
but not in the exported file. How to reduce the precision in the exported
file?
2. Some entries look like "5*x + 3*y", which leaves spaces around the plus
or minus signs. Is there a way to tell Mathematica not leave these spaces
because the other program assumes that this is a new column?

I also tried to write M//InputForm and just copy and past it, but I get a
lot of expressions such as 1.935*^-6 which the other software cannot
understand. Is there a way to write it in the form:  1.935e-6?

Thanks in advance

-- 
Adel Elsabbagh
ASU Sound & Vibration Lab
Faculty of Engineering - Ain Shams University
Cairo, Egypt 11517
Tel: +202 26828114
http://www.asugards.net/




  • Follow-Ups:
    • Re: Export
      • From: christopher arthur <chris.arthur1@gmail.com>
  • Prev by Date: Re: Buttons in CDFs Created for Homework Assignments
  • Next by Date: Re: FindMinimum function does not seem to work for simple problems
  • Previous by thread: Re: How to solve the integrate problem
  • Next by thread: Re: Export