I am trying to read a text file in MATLAB, which has the following format. I am looking to read the entire string as a string.
2402:0.099061 2404:0.136546 2406:0.447161 2407:0.126333 2408:0.213803 2411:0.068189
I tried a couple of things.
textscan(fid, '%s')
reads the line, but breaks the line into cells in spaces.
fscanf(fid, '%s')
reads a string as a string, but removes all spaces.
source share