I have a.txt file, with complex data. the format is
1.958138021e-02 0.64646110658609712285 + 0.093290941560866688653j 1.958139648e-02 0.32117256288141476928 - 0.061542254916540022058j 1.958141276e-02 -0.22359569118086644601 + 0.3585713533321416846j 1.958142904e-02 -0.22397218216792619261 + 0.082213621398327246803j 1.999960938e-02 0 1.999962565e-02 0 1.999964193e-02 0 1.999965820e-02 02.000000000e-02 0.10412797744247889731 + 0.0081123700776114041067j
There's space between + and -. how can I read this file into a matrix with seperated I part and Q part.
like
1.958138021e-02 0.64646110658609712285 0.093290941560866688653...1.999960938e-02 0 02.000000000e-02 0.10412797744247889731 0.0081123700776114041067
Best Answer