Skip to content
Snippets Groups Projects
Commit f4d0e0dd authored by Lemmer, Jan's avatar Lemmer, Jan
Browse files

Merge branch 'initialisation/checkVersion' into 'master'

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

See merge request !71
parents 18f89421 6384cece
No related branches found
No related tags found
1 merge request!71Added an error when starting the Initialisation.m on too old Matlab Versions
Pipeline #671871 passed
......@@ -6,6 +6,12 @@
% 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');
......
......@@ -125,6 +125,16 @@ The config file is a JSON-File. The config file stores user data and options of
## Define an export path
If you define an export path in the config.json this path is used as location for the exported data.
## Example config.json
```
{
"Author": "Name",
"ProjectID": "XYZ01",
"ExportPath": "C:\\project\\plot_ID"
}
```
## Store custom options for Publish
**add custom publish options to the config file** \
you can define your custom options for publish in the config file. **Important:** They will always have priority against Name-Value pairs!
......@@ -139,7 +149,7 @@ This method adds the default config to your config file
configObj.addPublishOptions('default');
```
You can change the options in the json file, but be carefull no argumentValidation will be done on options from the config file!
You can change the options in the json file, but be careful no argumentValidation will be done on options from the config file!
## Working with multiple (project dependend) config files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment