Hello to everyone,
I have a code in ".mfile" which generates a 1X14240 data. The output data is composed of complex numbers, which all appear well at the command line. However, whenever I write the data into either a ".dat", or ".txt" file, I find it all corrupted by the time I open it up. What could be possibly wrong with it? Could it be that the data length is too long?.
Here is the code I used for saving the file:
filename='filename.txt';fid = fopen(filename,'w');newshape = reshape([real(data);imag(data)],1,2*length(data));F = fwrite(fid,newshape,'float');fclose all;
Thanks for your anticipated responses
Best Answer