How do I read the rest of a line of a text file in MATLAB with TEXTSCAN?
问题 I am trying to read a text file with data according to a specific format. I am using and textscan together with a string containing the format to read the whole data set in one code line. I've found how to read the whole line with fgetl , but I would like to use as few code lines as possible. So I want to avoid own for loops. textscan seems great for that. As an example I'll include a part of my code which reads five strings representing a modified dataset, its heritage (name of old dataset),