I am trying to create a .txt file with the following data in this format.
e 5.4 300+2i
f 3.3 3+200i
c 2.2 9.9+210i
f 1.1 2.290+0.1i
with e,f,c,f beign strings, and the last numbers being complex numbers.
I'm not sure what the best way to go about this. Should I create a cell array and then use fprintf to create a .txt file?