I would like to read a (fairly big) log file into a MATLAB string cell in one step. I have used the usual:
s={}; fid = fopen(\'test.txt\'); tline = fgetl(fid); w
Use the fgetl function instead of fread. For more info, go here
fgetl
fread