Origin Ver. and Service Release (Select Help-->About Origin): 2016 Operating System: Windows10 I imported ASCII file which contained columns of complex numbers. Origin sees them as text. Changing Column properties to Numeric/COmplex results in "--" output. How can I either convert the columns to complex numerical values or importin such a way that Origin recognizes the data as complex numbers.
Assume you have complex numbers stored in col(A) with string format “a + bi”, double click the column header of col(B) to launch the column property dialog. Under the Options node, change Format to Numeric, change Data Type to Complex(16). Then setting column value of col(B) to col(A) will gives complex numbers.
Thank you for your response. Unfortunately your method does not work for me. Since I do not know Origin scripting language it is hard to comment on why it is the case. I thought that The line which is looking for "-" is causing a problem since my data includes numbers with negative exponents (like 1.2e-006). Removing that line does not fix the problem however. But I managed to separate my data on import into real and imaginary parts by defining appropriate delimiters. Luckily my data is always of the form "a+bi" and never "a-bi".
I believe you will need to set the worksheet columns to complex numbers before importing the data. If you import the data into the worksheet and then set the column to complex, you will get --.
The format is also important:
"a + bi" will work "a+bi" will give you something different.