Message Boards Message Boards

0
|
840 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

complex number import

Posted 11 years ago
dear all,

i would like to import a list with integers and compex numbers from a file that it appears as:

FilmRefractiveIndexList =
  {{300, 8.51264 + 41.73408 I},
   {350, 21.63007 + 31.84526 I},
   {400, 31.12276 + 3.38572 I},
   {450, 21.85670 + 0.85103 I},
   {500, 18.42782 + 0.38637 I},
   {550, 16.62115 + 0.22831 I},
   {600, 15.51532 + 0.15756 I},
   {650, 14.77611 + 0.11532 I},
   {700, 14.24296 + 0.08303 I},
   {750, 13.86067 + 0.05957 I},
   {800, 13.54974 + 0.03681 I},
   {850, 13.32248 + 0.02920 I},
   {900, 13.10440 + 0.01448 I},
   {950, 12.90246 + 0.00718 I},
   {1000, 12.74490 + 0.00714 I}};

in mathematica. which file format and which import function can i use?

thank you very much for your help!

regards,
sebastian
To save actual Mathematica code snippets and pull them back into Mathematica, use the function Get and Put. You can save them as ordinary txt files if you want to or use the .m extention.

http://reference.wolfram.com/mathematica/tutorial/ReadingAndWritingMathematicaFiles.html
POSTED BY: Sean Clarke
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract