I have this kind of data
{1 + 2i
3 + 4i
2 + 7i
….}
I used fprintf to save the above
file_name = fopen('data.txt','w');fprintf(file_name, '%s\r\n', data);fclose(file_name)
I got data.txt and theronly exist the real value
like
1
3
2
….
not the
1 + 2i
3 + 4i
2 + 7i
…
How to save this data type properly?
Best Answer