I want to read the attached text-file which contains two columns: text and numeric. I used the code:
fileID=fopen('NWISMapperExport.txt','r');z=textscan(fileID,'%s %f');fclose(fileID);
The problem is that it removes leading zeros in the second column, is there is a simple way to retain zeros? I had the same problem with importdata.
Best Answer