Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.