Skip to content

Commit

Permalink
Apply Heittola's fix for get_result_filename
Browse files Browse the repository at this point in the history
  • Loading branch information
janden committed Jul 8, 2016
1 parent 40ec116 commit dab976e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/classification/get_result_filename.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@
if nargin < 3
extension = 'txt';
end
filename = fullfile(path, ['results_fold',num2str(fold), '.', extension]);
end
if fold == 0
filename = fullfile(path, ['results','.', extension]);
else
filename = fullfile(path, ['results_fold',num2str(fold), '.', extension]);
end
end

0 comments on commit dab976e

Please sign in to comment.