parse a text file in matlab
October 21st, 2008 by Lawrence David
to parse a text file in matlab that can’t be read using the ‘load’ command, you can use fgetl in the following manner:
fid = fopen(‘file.name’);
while 1
tline = fgetl(fid);
if ~ischar(tline)
break
endtline
end
I need to do some kind of statistics on text files, like parsing by words and counting number of words and repetition for each word too. how can I do that by matlab? please help
I need to do some kind of statistics on text files, like parsing by words and counting number of words and repetition for each word too. how can I do that by matlab? please help, please reply to my email.