Consider the following code:
data = textscan(fid,'%s%d%d%d%d%f%d%f%f%f%d','Delimiter',',','HeaderLines',28)
I want to break the line as follows:
data = textscan(fid,'%s%d%d%d%d%f%d...
%f%f%f%d','Delimiter',',','HeaderLines',28)
Matlab does not allow this and makes the second line a comment because of the % sign.
I have tried the following:
data = textscan(fid,'%s%d%d%d%d%f%d%...
f%f%f%d','Delimiter',',','HeaderLines',28)
But now the second line still gets commented out after the first f.
How can I do a line continuation with a % sign involved?
You should use square-brackets (
[]) to break strings up like that: