diff SolutionFile.m @ 136:8298734b1938

Updated noname.calculateSolution to use the opt struct.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 09 Feb 2016 13:27:38 +0100
parents dd4db0c97a02
children
line wrap: on
line diff
--- a/SolutionFile.m	Mon Feb 08 17:52:23 2016 +0100
+++ b/SolutionFile.m	Tue Feb 09 13:27:38 2016 +0100
@@ -34,15 +34,18 @@
         end
 
         function stupidSave(obj)
+            % Read file contents
             matObj = matfile(obj.filename,'Writable',true);
 
             keys = obj.matfile.keys;
             entries = obj.matfile.entries;
 
+            % Delete the file
             if exist(obj.filename,'file')
                 delete(obj.filename);
             end
 
+            % Rewrite the file
             matObj = matfile(obj.filename,'Writable',true);
             matObj.keys = keys;
             matObj.entries = entries;