Skip to content
Snippets Groups Projects

Added an error when starting the Initialisation.m on too old Matlab Versions

Merged Hock, Martin requested to merge initialisation/checkVersion into master
2 files
+ 33
17
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 7
1
@@ -6,11 +6,17 @@
% will help you create one:
writeConfig = true;
% Check for matlab version
if verLessThan('matlab','9.10')
msg="Your matlab Version is lower than 9.10 (2021a). The config file cannot be created with this wizard. You can either input data manually for each export or create the config file manually. For further Information see the Readme. More function might be impaired when using an old Matlab Version.";
error(msg);
end
% Ask User if current config should be overwritten
if isfile('config.json')
m = input('Do you want to overwrite the current config file, Y/N [Y]:','s');
writeConfig = ismember(m,{'Y','y'});
end
end
if writeConfig
config = PlotID.config.wizard('initialise');
Loading