-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstartup.m
More file actions
22 lines (18 loc) · 820 Bytes
/
startup.m
File metadata and controls
22 lines (18 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function startup(version)
% startup - Startup routines for openMINDS_MATLAB
%
% This function ensures that only one version of openMINDS schema classes
% are on MATLAB's search path.
arguments
version (1,1) openminds.internal.utility.VersionNumber ...
{openminds.mustBeValidVersion(version)} = "latest"
end
disp('Initializing openMINDS_MATLAB...')
% NB: Assumes this function is located in code/+openminds:
codePath = fileparts( fileparts( mfilename('fullpath') ) );
addpath( fullfile(codePath, 'internal') )
% Run internal function that correctly configures the search path
openminds.selectOpenMindsVersion(version)
fprintf(['Added classes for version "%s" of the openMINDS metadata model ' ...
'to the search path.\n'], string(version))
end