Commit 18a86d20 authored by Pierre Cazenave's avatar Pierre Cazenave

Fix a weird issue with the printing of the status information. This way should...

Fix a weird issue with the printing of the status information. This way should be more robust (if ftbverbose is empty, for example)
parent 7c04bbb5
......@@ -111,8 +111,10 @@ while readingData
lin = fgetl(fid);
if lin ~= -1 % EOF is -1
i = i + 1;
if ftbverbose && mod(i, 10000) == 0
fprintf('line %i\n', i)
if ftbverbose
if mod(i, 10000) == 0
fprintf('line %i\n', i)
end
end
% str2double doesn't work without a couple of calls to regexp,
% which makes it ~20x slower than str2num on its own. The regexp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment