Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some data in TSV format and am attempting to import it into Mathematica. Real values import just fine, but complex values keep on getting interpreted as strings.

I attempted to figure out what format Mathematica was looking for by exporting some complex values in TSV, but interestingly enough Mathematica fails to import complex TSV values that it exported itself! Is there any way to import complex values through TSV in Mathematica?

share|improve this question
up vote 3 down vote accepted

I figured this one out. You simply need to pass the imported array through ToExpression, which converts strings formatted as a+bI to the proper imaginary values.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.