-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c26dac1
commit 40f8877
Showing
3 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
classdef (Abstract, HandleCompatible) SaveLoad | ||
% SAVELOAD Utility class to aid saving and loading to MAT files. | ||
|
||
properties (Abstract, Constant) | ||
% VERSION Version number. | ||
Version (1, 1) string | ||
end | ||
|
||
properties (GetAccess = protected, SetAccess = private) | ||
% ORIGINALVERSION Original version for save/load compatibility. | ||
OriginalVersion (1, 1) string | ||
end | ||
|
||
methods (Hidden) | ||
|
||
function savedObject = saveobj(this) | ||
|
||
savedObject = this; | ||
savedObject.OriginalVersion = this.Version; | ||
end | ||
end | ||
end |