diff --git a/.gitignore b/.gitignore
index 4690698155f882ea48222ac4d5d12944e408e93c..a667ac3c820150c212a66fa1d4a5cdd10cc5f8b2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@ reports/*.out
 reports/*.xml
 reports/*.snm
 reports/*.toc
+powderAverage_inhBroadening*.mat
diff --git a/images/stickSpectrum_zechThesis.png b/images/stickSpectrum_zechThesis.png
new file mode 100755
index 0000000000000000000000000000000000000000..c759379753f02861a863ea9231ef4f5fcee52e9e
Binary files /dev/null and b/images/stickSpectrum_zechThesis.png differ
diff --git a/pathdef.m b/pathdef.m
deleted file mode 100755
index a9fcf70989253fc97a2b75e7bba3891f5ce10dc6..0000000000000000000000000000000000000000
--- a/pathdef.m
+++ /dev/null
@@ -1,1954 +0,0 @@
-function p = pathdef
-%PATHDEF Search path defaults.
-%   PATHDEF returns a string that can be used as input to MATLABPATH
-%   in order to set the path.
-
-  
-%   Copyright 1984-2016 The MathWorks, Inc.
-
-
-% DO NOT MODIFY THIS FILE.  IT IS AN AUTOGENERATED FILE.  
-% EDITING MAY CAUSE THE FILE TO BECOME UNREADABLE TO 
-% THE PATHTOOL AND THE INSTALLER.
-
-p = [...
-%%% BEGIN ENTRIES %%%
-     'S:\soft\matlab;', ...
-     'S:\soft\matlab\Jannik Moeser;', ...
-     'S:\soft\matlab\Jannik Moeser\Bootstrapping;', ...
-     'S:\soft\matlab\Jannik Moeser\Bootstrapping\20210210 - MFEDMR Fitting Michele;', ...
-     'S:\soft\matlab\Jannik Moeser\Bootstrapping\20210210 - MFEDMR Fitting Michele\functions;', ...
-     'S:\soft\matlab\Silvio;', ...
-     'S:\soft\matlab\altmany-export_fig-3.42.0.0;', ...
-     'S:\soft\matlab\altmany-export_fig-3.42.0.0\.ignore;', ...
-     'S:\soft\matlab\backcor;', ...
-     'S:\soft\matlab\cmap;', ...
-     'S:\soft\matlab\cmap\Colormaps;', ...
-     'S:\soft\matlab\cmap\Colormaps\Colormaps;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\acton;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\acton\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\acton\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bam;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bam\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bamO;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bamO\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bamako;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bamako\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bamako\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlow;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlow\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlow\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlowK;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlowK\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlowK\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlowW;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlowW\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\batlowW\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\berlin;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\berlin\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bilbao;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bilbao\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bilbao\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\broc;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\broc\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\brocO;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\brocO\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\buda;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\buda\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\buda\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bukavu;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\bukavu\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\cork;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\cork\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\corkO;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\corkO\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\davos;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\davos\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\davos\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\devon;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\devon\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\devon\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\fes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\fes\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\grayC;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\grayC\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\grayC\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\hawaii;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\hawaii\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\hawaii\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\imola;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\imola\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\imola\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\lajolla;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\lajolla\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\lajolla\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\lapaz;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\lapaz\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\lapaz\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\lisbon;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\lisbon\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\nuuk;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\nuuk\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\nuuk\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\oleron;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\oleron\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\oslo;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\oslo\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\oslo\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\roma;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\roma\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\romaO;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\romaO\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\tofino;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\tofino\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\tokyo;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\tokyo\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\tokyo\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\turku;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\turku\CategoricalPalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\turku\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\vanimo;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\vanimo\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\vik;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\vik\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\vikO;', ...
-     'S:\soft\matlab\cmap\ScientificColourMaps7\vikO\DiscretePalettes;', ...
-     'S:\soft\matlab\cmap\cmocean;', ...
-     'S:\soft\matlab\cmap\cmocean\html;', ...
-     'S:\soft\matlab\easyspin-6.0.0;', ...
-     'S:\soft\matlab\easyspin-6.0.0\documentation;', ...
-     'S:\soft\matlab\easyspin-6.0.0\documentation\eqn;', ...
-     'S:\soft\matlab\easyspin-6.0.0\documentation\highlight;', ...
-     'S:\soft\matlab\easyspin-6.0.0\documentation\img;', ...
-     'S:\soft\matlab\easyspin-6.0.0\easyspin;', ...
-     'S:\soft\matlab\easyspin-6.0.0\easyspin\util;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\analysis;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\endor;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\fitting;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\liquids;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\magnetometry;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\photoexcitation;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\pulse evolve;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\pulse saffron;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\pulse shaping;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\pulse spidyan;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\slowmotion;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\solidstate;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\trajectories;', ...
-     'S:\soft\matlab\easyspin-6.0.0\examples\varia;', ...
-     'S:\soft\matlab\jiumao2-EasyPlot-fac82d5;', ...
-     'S:\soft\matlab\jiumao2-EasyPlot-fac82d5\EasyPlot;', ...
-     'S:\soft\matlab\jiumao2-EasyPlot-fac82d5\doc;', ...
-     'S:\soft\matlab\my_scripts_misc;', ...
-     'S:\soft\matlab\my_util;', ...
-     'S:\soft\matlab\my_util\Figure;', ...
-     'S:\soft\matlab\my_util\cw;', ...
-     'S:\soft\matlab\my_util\pulse;', ...
-     'S:\soft\matlab\my_util\scr;', ...
-     'C:\Users\gianlum33\AppData\Local\Temp\27\Editor_yxiof;', ...
-     matlabroot,'\toolbox\matlab\capabilities;', ...
-     matlabroot,'\toolbox\matlab\datafun;', ...
-     matlabroot,'\toolbox\matlab\datatypes;', ...
-     matlabroot,'\toolbox\matlab\elfun;', ...
-     matlabroot,'\toolbox\matlab\elmat;', ...
-     matlabroot,'\toolbox\matlab\funfun;', ...
-     matlabroot,'\toolbox\matlab\general;', ...
-     matlabroot,'\toolbox\matlab\iofun;', ...
-     matlabroot,'\toolbox\matlab\lang;', ...
-     matlabroot,'\toolbox\matlab\matfun;', ...
-     matlabroot,'\toolbox\matlab\mvm;', ...
-     matlabroot,'\toolbox\matlab\ops;', ...
-     matlabroot,'\toolbox\matlab\polyfun;', ...
-     matlabroot,'\toolbox\matlab\randfun;', ...
-     matlabroot,'\toolbox\matlab\sparfun;', ...
-     matlabroot,'\toolbox\matlab\specfun;', ...
-     matlabroot,'\toolbox\matlab\strfun;', ...
-     matlabroot,'\toolbox\matlab\strfun\validators;', ...
-     matlabroot,'\toolbox\matlab\timefun;', ...
-     matlabroot,'\toolbox\matlab\validators;', ...
-     matlabroot,'\toolbox\hdlcoder\matlabhdlcoder\matlabhdlcoder;', ...
-     matlabroot,'\toolbox\hdlcoder\matlabhdlcoder;', ...
-     matlabroot,'\toolbox\matlabxl\function_wizard;', ...
-     matlabroot,'\toolbox\matlab\datatools\desktop_variableeditor\matlab;', ...
-     matlabroot,'\toolbox\matlab\datatools\desktop_workspacebrowser\matlab;', ...
-     matlabroot,'\toolbox\matlab\datatypes\calendarduration;', ...
-     matlabroot,'\toolbox\matlab\datatypes\categorical;', ...
-     matlabroot,'\toolbox\matlab\datatypes\codegen\categorical;', ...
-     matlabroot,'\toolbox\matlab\datatypes\shared\codegen;', ...
-     matlabroot,'\toolbox\matlab\datatypes\datetime;', ...
-     matlabroot,'\toolbox\matlab\datatypes\codegen\datetime;', ...
-     matlabroot,'\toolbox\matlab\datatypes\datetime_nonlibmatlab;', ...
-     matlabroot,'\toolbox\matlab\datatypes\duration;', ...
-     matlabroot,'\toolbox\matlab\datatypes\codegen\duration;', ...
-     matlabroot,'\toolbox\matlab\datatypes\shared\matlab_datatypes;', ...
-     matlabroot,'\toolbox\matlab\datatypes\tabular;', ...
-     matlabroot,'\toolbox\matlab\datatypes\codegen\tabular;', ...
-     matlabroot,'\toolbox\matlab\demos;', ...
-     matlabroot,'\toolbox\matlab\plottools\inspector;', ...
-     matlabroot,'\toolbox\matlab\graph2d;', ...
-     matlabroot,'\toolbox\matlab\graph3d;', ...
-     matlabroot,'\toolbox\matlab\graphics;', ...
-     matlabroot,'\toolbox\matlab\graphics\annotation;', ...
-     matlabroot,'\toolbox\matlab\graphics\axis;', ...
-     matlabroot,'\toolbox\matlab\graphics\chart;', ...
-     matlabroot,'\toolbox\matlab\graphics\color;', ...
-     matlabroot,'\toolbox\matlab\graphics\function;', ...
-     matlabroot,'\toolbox\matlab\graphics\illustration;', ...
-     matlabroot,'\toolbox\matlab\graphics\legacy;', ...
-     matlabroot,'\toolbox\matlab\graphics\obsolete;', ...
-     matlabroot,'\toolbox\matlab\graphics\printing;', ...
-     matlabroot,'\toolbox\matlab\graphics\objectsystem;', ...
-     matlabroot,'\toolbox\matlab\graphics\primitive;', ...
-     matlabroot,'\toolbox\matlab\plottools;', ...
-     matlabroot,'\toolbox\matlab\scribe;', ...
-     matlabroot,'\toolbox\matlab\scribe\obsolete;', ...
-     matlabroot,'\toolbox\matlab\specgraph;', ...
-     matlabroot,'\toolbox\matlab\uitools;', ...
-     matlabroot,'\toolbox\matlab\uitools\obsolete;', ...
-     matlabroot,'\toolbox\matlab\hardware\stubs;', ...
-     matlabroot,'\toolbox\matlab\images;', ...
-     matlabroot,'\toolbox\matlab\iot;', ...
-     matlabroot,'\toolbox\matlab\iot\connectivity;', ...
-     matlabroot,'\toolbox\matlab\io\archive;', ...
-     matlabroot,'\toolbox\matlab\io\datastore\array;', ...
-     matlabroot,'\toolbox\matlab\io\ftp;', ...
-     matlabroot,'\toolbox\matlab\io\functions;', ...
-     matlabroot,'\toolbox\matlab\io\spreadsheet;', ...
-     matlabroot,'\toolbox\matlab\io\text;', ...
-     matlabroot,'\toolbox\matlab\io\xml;', ...
-     matlabroot,'\toolbox\local;', ...
-     matlabroot,'\toolbox\matlab\maps;', ...
-     matlabroot,'\toolbox\matlab\graphics\maps;', ...
-     matlabroot,'\toolbox\matlab\network;', ...
-     matlabroot,'\toolbox\matlab\optimfun;', ...
-     matlabroot,'\toolbox\matlab\bigdata;', ...
-     matlabroot,'\toolbox\matlab\codeanalysis\reports\analysis;', ...
-     matlabroot,'\toolbox\matlab\codetools;', ...
-     matlabroot,'\toolbox\matlab\codetools\embeddedoutputs;', ...
-     matlabroot,'\toolbox\matlab\codetools\embeddedoutputs\datatoolsregistration;', ...
-     matlabroot,'\toolbox\matlab\codetools\liveapps;', ...
-     matlabroot,'\toolbox\matlab\datamanager;', ...
-     matlabroot,'\toolbox\matlab\datastoreio;', ...
-     matlabroot,'\toolbox\matlab\dataui;', ...
-     matlabroot,'\toolbox\matlab\depfun;', ...
-     matlabroot,'\toolbox\matlab\graphfun;', ...
-     matlabroot,'\toolbox\matlab\guide;', ...
-     matlabroot,'\toolbox\matlab\helptools;', ...
-     matlabroot,'\toolbox\matlab\icons;', ...
-     matlabroot,'\toolbox\matlab\mapreduceio;', ...
-     matlabroot,'\toolbox\matlab\parallel;', ...
-     matlabroot,'\toolbox\matlab\parquetds;', ...
-     matlabroot,'\toolbox\matlab\parquetio;', ...
-     matlabroot,'\toolbox\matlab\strfun\pattern;', ...
-     matlabroot,'\toolbox\matlab\taskfuture;', ...
-     matlabroot,'\toolbox\matlab\taskpool;', ...
-     matlabroot,'\toolbox\matlab\testframework\measurement\core;', ...
-     matlabroot,'\toolbox\matlab\testframework\measurement\ext;', ...
-     matlabroot,'\toolbox\matlab\testframework\mock\core;', ...
-     matlabroot,'\toolbox\matlab\testframework\performance\core;', ...
-     matlabroot,'\toolbox\matlab\testframework\performance\ext;', ...
-     matlabroot,'\toolbox\matlab\testframework\uiautomation;', ...
-     matlabroot,'\toolbox\matlab\testframework\uitest;', ...
-     matlabroot,'\toolbox\matlab\testframework\ui\toolstrip;', ...
-     matlabroot,'\toolbox\matlab\testframework\unittest\core;', ...
-     matlabroot,'\toolbox\matlab\testframework\obsolete;', ...
-     matlabroot,'\toolbox\matlab\testframework\unittest\ext;', ...
-     matlabroot,'\toolbox\matlab\testframework\unittest\parallel;', ...
-     matlabroot,'\toolbox\matlab\verctrl;', ...
-     matlabroot,'\toolbox\matlab\winfun;', ...
-     matlabroot,'\toolbox\matlab\winfun\net;', ...
-     matlabroot,'\toolbox\simulink\simulink;', ...
-     matlabroot,'\toolbox\simulink\components;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder\xil\toolstrip\m;', ...
-     matlabroot,'\toolbox\rtw\targets\asap2\asap2\dataclasses;', ...
-     matlabroot,'\toolbox\rtw\targets\asap2\asap2;', ...
-     matlabroot,'\toolbox\rtw\targets\asap2\asap2\user;', ...
-     matlabroot,'\toolbox\rtw\targets\common\can\blocks\dataclasses;', ...
-     matlabroot,'\toolbox\rtw\targets\common\can\blocks;', ...
-     matlabroot,'\toolbox\rtw\targets\common\can\blocks\tlc_c;', ...
-     matlabroot,'\toolbox\rtw\targets\common\tgtcommon;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder\cgv\api;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder\targets;', ...
-     matlabroot,'\toolbox\rtw\targets\pil;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder\toolstriphw\m;', ...
-     matlabroot,'\toolbox\coder\advisor;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_app\code_perspective;', ...
-     matlabroot,'\toolbox\shared\simulinkcoder\profiles;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_app\core;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_app\quick_start\m;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_app\report;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_app\slfpc;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_app\toolstrip\m;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_app\ui;', ...
-     matlabroot,'\toolbox\rtw\accel;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_core;', ...
-     matlabroot,'\toolbox\coder\simulinkcoder_core\templates;', ...
-     matlabroot,'\toolbox\rtw\rtwdemos;', ...
-     matlabroot,'\toolbox\rtw\rtwdemos\rsimdemos;', ...
-     matlabroot,'\toolbox\coder\objectives;', ...
-     matlabroot,'\toolbox\simulinkcompiler\appruntime;', ...
-     matlabroot,'\toolbox\simulinkcompiler\simulinkcompiler;', ...
-     matlabroot,'\toolbox\simulinkcompiler\examples;', ...
-     matlabroot,'\toolbox\simulinktest\simulinktest;', ...
-     matlabroot,'\toolbox\simulinktest\core\assessments\assessments;', ...
-     matlabroot,'\toolbox\simulinktest\core\assessments\expressions;', ...
-     matlabroot,'\toolbox\simulinktest\core\assessments_editor\assessments_editor;', ...
-     matlabroot,'\toolbox\simulinktest\core\simharness\simharness;', ...
-     matlabroot,'\toolbox\simulinktest\core\observer\observer;', ...
-     matlabroot,'\toolbox\simulinktest\core\injector\injector;', ...
-     matlabroot,'\toolbox\simulinktest\core\fuzzer\fuzzer;', ...
-     matlabroot,'\toolbox\simulinktest\core\testadvisor\testadvisor;', ...
-     matlabroot,'\toolbox\simulinktest\core\slt_blkmaputil\slt_blkmaputil;', ...
-     matlabroot,'\toolbox\simulinktest\simulinktestdemos;', ...
-     matlabroot,'\toolbox\stm\stm\matlabunit;', ...
-     matlabroot,'\toolbox\simulinktest\core\testsequence\testsequence;', ...
-     matlabroot,'\toolbox\simulink\blocksupport;', ...
-     matlabroot,'\toolbox\simulink\blocks;', ...
-     matlabroot,'\toolbox\simulink\blocks\library;', ...
-     matlabroot,'\toolbox\simulink\blocks\library\simulinkcoder;', ...
-     matlabroot,'\toolbox\simulink\blocks\obsolete;', ...
-     matlabroot,'\toolbox\simulink\blocks\pid_images;', ...
-     matlabroot,'\toolbox\simulink\comparisons\blockdiagram;', ...
-     matlabroot,'\toolbox\simulink\comparisons\model\edits;', ...
-     matlabroot,'\toolbox\simulink\configset\configset;', ...
-     matlabroot,'\toolbox\simulink\configset_model\configset;', ...
-     matlabroot,'\toolbox\simulink\configset_model\configset\derived;', ...
-     matlabroot,'\toolbox\simulink\core\dataclasses;', ...
-     matlabroot,'\toolbox\simulink\core\general;', ...
-     matlabroot,'\toolbox\simulink\core\api;', ...
-     matlabroot,'\toolbox\simulink\core\dataobjectwizard;', ...
-     matlabroot,'\toolbox\simulink\core\slresolve;', ...
-     matlabroot,'\toolbox\simulink\core\units;', ...
-     matlabroot,'\toolbox\simulink\core\model_transformer;', ...
-     matlabroot,'\toolbox\simulink\core\clone_detection;', ...
-     matlabroot,'\toolbox\simulink\core\sortingcheck;', ...
-     matlabroot,'\toolbox\simulink\core\sfuncheck;', ...
-     matlabroot,'\toolbox\simulink\core\dialogs;', ...
-     matlabroot,'\toolbox\simulink\core\librarylinktool;', ...
-     matlabroot,'\toolbox\simulink\simulink\templates\core;', ...
-     matlabroot,'\toolbox\simulink\simdemos\dataclasses;', ...
-     matlabroot,'\toolbox\simulink\simdemos;', ...
-     matlabroot,'\toolbox\simulink\simdemos\aerospace;', ...
-     matlabroot,'\toolbox\simulink\simdemos\aerospace\lunarwrl;', ...
-     matlabroot,'\toolbox\simulink\simdemos\automotive;', ...
-     matlabroot,'\toolbox\simulink\simdemos\simfeatures;', ...
-     matlabroot,'\toolbox\simulink\simdemos\simfeatures\modelreference;', ...
-     matlabroot,'\toolbox\simulink\simdemos\simfeatures\datadictionary;', ...
-     matlabroot,'\toolbox\simulink\simdemos\automotive\fuelsys;', ...
-     matlabroot,'\toolbox\simulink\simdemos\simgeneral;', ...
-     matlabroot,'\toolbox\simulink\simdemos\industrial;', ...
-     matlabroot,'\toolbox\simulink\simdemos\automotive\powerwindow;', ...
-     matlabroot,'\toolbox\simulink\diagram\mi\m;', ...
-     matlabroot,'\toolbox\slde\slde;', ...
-     matlabroot,'\toolbox\slde\examples;', ...
-     matlabroot,'\toolbox\simulink\engine_interface;', ...
-     matlabroot,'\toolbox\simulink\simulink_export_methods;', ...
-     matlabroot,'\toolbox\fixedpoint\simulinkfixedpoint;', ...
-     matlabroot,'\toolbox\simulink\hmi;', ...
-     matlabroot,'\toolbox\simulink\hmi_lib;', ...
-     matlabroot,'\toolbox\simulink\simulink_hmi_slexportprevious;', ...
-     matlabroot,'\toolbox\simulink\legacycode;', ...
-     matlabroot,'\toolbox\simulink\simulink\modeladvisor;', ...
-     matlabroot,'\toolbox\simulink\simulink\modeladvisor\fixpt;', ...
-     matlabroot,'\toolbox\simulink\simulink\modeladvisor\misra;', ...
-     matlabroot,'\toolbox\simulink\simulink\modeladvisor\security;', ...
-     matlabroot,'\toolbox\shared\slmleditor\m;', ...
-     matlabroot,'\toolbox\simulink\mex;', ...
-     matlabroot,'\toolbox\simulink\simulink\templates\product;', ...
-     matlabroot,'\toolbox\simulink\protected_model\core\core;', ...
-     matlabroot,'\toolbox\simulink\sdi;', ...
-     matlabroot,'\toolbox\simulink\search\mi\m;', ...
-     matlabroot,'\toolbox\simulink\simulationinput;', ...
-     matlabroot,'\toolbox\simulink\simulationinput_deployed;', ...
-     matlabroot,'\toolbox\simulink\simulationinput_desktop;', ...
-     matlabroot,'\toolbox\simulink\simulationinput_proxy;', ...
-     matlabroot,'\toolbox\simulink\simulationoutput;', ...
-     matlabroot,'\toolbox\simulink_standalone\shared;', ...
-     matlabroot,'\toolbox\simulink_standalone\utils;', ...
-     matlabroot,'\toolbox\simulink\sysarch\sysarch;', ...
-     matlabroot,'\toolbox\simulink\simulink_udd;', ...
-     matlabroot,'\toolbox\simulink\ui\printing;', ...
-     matlabroot,'\toolbox\simulink\ui\library_browser\core\m;', ...
-     matlabroot,'\toolbox\simulink\ui\studio\config\m;', ...
-     matlabroot,'\toolbox\simulink\ui\sysdoc\core;', ...
-     matlabroot,'\toolbox\shared\examples\verification;', ...
-     matlabroot,'\toolbox\simulink\webblocks\core\m;', ...
-     matlabroot,'\toolbox\simulink\webblocks\customwebblocks\m;', ...
-     matlabroot,'\toolbox\simulink\webblocks\widgets\m;', ...
-     matlabroot,'\toolbox\stateflow\stateflow;', ...
-     matlabroot,'\toolbox\stateflow\coder;', ...
-     matlabroot,'\toolbox\stateflow\sfdemos;', ...
-     matlabroot,'\toolbox\stateflow\stateflow_lib;', ...
-     matlabroot,'\toolbox\shared\stateflow;', ...
-     matlabroot,'\toolbox\stateflow\sftemplates;', ...
-     matlabroot,'\toolbox\stateflow\ui\studio\config\m;', ...
-     matlabroot,'\toolbox\5g\5g;', ...
-     matlabroot,'\toolbox\matlab\addons;', ...
-     matlabroot,'\toolbox\matlab\addons\cef;', ...
-     matlabroot,'\toolbox\matlab\addons\fileexchange;', ...
-     matlabroot,'\toolbox\matlab\addons\supportpackages;', ...
-     matlabroot,'\toolbox\matlab\addons_product;', ...
-     matlabroot,'\toolbox\matlab\supportpackagemanagement;', ...
-     matlabroot,'\toolbox\matlab\addon_updates\matlab;', ...
-     matlabroot,'\toolbox\matlab\addon_enable_disable_management\matlab;', ...
-     matlabroot,'\toolbox\matlab\addressbar_plugins\browse_for_folder_button\matlab;', ...
-     matlabroot,'\toolbox\matlab\addressbar_plugins\cd_up_one_dir_button\matlab;', ...
-     matlabroot,'\toolbox\simulink\advisorui2;', ...
-     matlabroot,'\toolbox\aero\aero;', ...
-     matlabroot,'\toolbox\aeroblks;', ...
-     matlabroot,'\toolbox\aeroblks\aeroblks;', ...
-     matlabroot,'\toolbox\aeroblks\aeroblksutilities;', ...
-     matlabroot,'\toolbox\aeroblks\aeroblksutilities\fwdtransformations;', ...
-     matlabroot,'\toolbox\aeroblks\aerodemos;', ...
-     matlabroot,'\toolbox\aeroblks\aerodemos\texture;', ...
-     matlabroot,'\toolbox\shared\aeroblks\aerodemos\hybridaircraft;', ...
-     matlabroot,'\toolbox\shared\aeroblks\aerodemos\quadcopter;', ...
-     matlabroot,'\toolbox\aeroblks\flightcontrol;', ...
-     matlabroot,'\toolbox\aeroblks\flightcontrol\3dofairframe;', ...
-     matlabroot,'\toolbox\aeroblks\flightcontrol\6dofairframe;', ...
-     matlabroot,'\toolbox\aeroblks\aeroblks\hmi;', ...
-     matlabroot,'\toolbox\aeroblks\templates;', ...
-     matlabroot,'\toolbox\aero\uicomponents\plugin\appdesigner;', ...
-     matlabroot,'\toolbox\aero\astdemos;', ...
-     matlabroot,'\toolbox\aero\uicomponents;', ...
-     matlabroot,'\toolbox\alm\handler_service_interface\ml;', ...
-     matlabroot,'\toolbox\alm\project_services\ml;', ...
-     matlabroot,'\toolbox\alm\slreq_handlers\ml;', ...
-     matlabroot,'\toolbox\alm\sltest_handlers\ml;', ...
-     matlabroot,'\toolbox\alm\stateflow_handlers\ml;', ...
-     matlabroot,'\toolbox\antenna\antenna;', ...
-     matlabroot,'\toolbox\antenna\antenna\antennautilities;', ...
-     matlabroot,'\toolbox\antenna\antenna\meshutilities;', ...
-     matlabroot,'\toolbox\antenna\antenna\cadsupport\gerber;', ...
-     matlabroot,'\toolbox\antenna\antenna\optimutilities\models;', ...
-     matlabroot,'\toolbox\antenna\antenna\optimutilities\sadea;', ...
-     matlabroot,'\toolbox\antenna\antenna\optimutilities\sadeautils;', ...
-     matlabroot,'\toolbox\antenna\atexamples;', ...
-     matlabroot,'\toolbox\matlab\appcontainer\appcontainer;', ...
-     matlabroot,'\toolbox\matlab\appdesigner\appdesigner;', ...
-     matlabroot,'\toolbox\matlab\appdesigner\comparison;', ...
-     matlabroot,'\toolbox\matlab\appdesigner\appdesigner\interface;', ...
-     matlabroot,'\toolbox\matlab\appdesigner\appdesigner\runtime;', ...
-     matlabroot,'\toolbox\matlab\apps;', ...
-     matlabroot,'\toolbox\audio\audio;', ...
-     matlabroot,'\toolbox\audio\samples;', ...
-     matlabroot,'\toolbox\audio\audioutilities;', ...
-     matlabroot,'\toolbox\audio\audioutilities\audioinit;', ...
-     matlabroot,'\toolbox\audio\audioutilities\audiomex;', ...
-     matlabroot,'\toolbox\audio\audio\compiled;', ...
-     matlabroot,'\toolbox\audio\audioexamples;', ...
-     matlabroot,'\toolbox\matlab\audiovideo;', ...
-     matlabroot,'\toolbox\audio\audioapps\audioapps;', ...
-     matlabroot,'\toolbox\audio\audioapps\audioapputils;', ...
-     matlabroot,'\toolbox\audio\audioapps\audiolabeler;', ...
-     matlabroot,'\toolbox\audio\audioapps\signallabeler;', ...
-     matlabroot,'\toolbox\audio\templates;', ...
-     matlabroot,'\toolbox\autoblks;', ...
-     matlabroot,'\toolbox\autoblks\autoblks;', ...
-     matlabroot,'\toolbox\autoblks\autoblksutilities;', ...
-     matlabroot,'\toolbox\autoblks\autoblksutilities\mbctemplates;', ...
-     matlabroot,'\toolbox\autoblks\autodemos;', ...
-     matlabroot,'\toolbox\autoblks\autoblksshared;', ...
-     matlabroot,'\toolbox\autoblks\autoblksshared\mbc;', ...
-     matlabroot,'\toolbox\autoblks\autoblksshared\mbctemplates;', ...
-     matlabroot,'\toolbox\autoblks_utils;', ...
-     matlabroot,'\toolbox\coder\autosar;', ...
-     matlabroot,'\toolbox\coder\autosar\blocks;', ...
-     matlabroot,'\toolbox\coder\autosar\xrelexport;', ...
-     matlabroot,'\toolbox\rtw\targets\autosar\autosar\dataclasses;', ...
-     matlabroot,'\toolbox\rtw\targets\autosar\autosar;', ...
-     matlabroot,'\toolbox\coder\autosar_templates;', ...
-     matlabroot,'\toolbox\simulink\batchsim;', ...
-     matlabroot,'\toolbox\bioinfo\bioinfo;', ...
-     matlabroot,'\toolbox\bioinfo\biolearning;', ...
-     matlabroot,'\toolbox\bioinfo\cufflinks;', ...
-     matlabroot,'\toolbox\bioinfo\bwa;', ...
-     matlabroot,'\toolbox\bioinfo\microarray;', ...
-     matlabroot,'\toolbox\bioinfo\mass_spec;', ...
-     matlabroot,'\toolbox\bioinfo\proteins;', ...
-     matlabroot,'\toolbox\bioinfo\biomatrices;', ...
-     matlabroot,'\toolbox\bioinfo\graphtheory;', ...
-     matlabroot,'\toolbox\bioinfo\bioinfodata;', ...
-     matlabroot,'\toolbox\bioinfo\biodemos;', ...
-     matlabroot,'\toolbox\matlab\bluetooth;', ...
-     matlabroot,'\toolbox\matlab\cefclient;', ...
-     matlabroot,'\toolbox\clone_detection_app\m;', ...
-     matlabroot,'\toolbox\coder\coderapp\types\ml;', ...
-     matlabroot,'\toolbox\coder\codedescriptor_core;', ...
-     matlabroot,'\toolbox\coder\codegendemos;', ...
-     matlabroot,'\toolbox\coder\coder;', ...
-     matlabroot,'\toolbox\coder\compile;', ...
-     matlabroot,'\toolbox\coder\compile\tools\registry;', ...
-     matlabroot,'\toolbox\coder\connectivity;', ...
-     matlabroot,'\toolbox\rtw\targets\connectivity;', ...
-     matlabroot,'\toolbox\coder\connectivity_targetservices\connectivityconfig;', ...
-     matlabroot,'\toolbox\coder\connectivity_core;', ...
-     matlabroot,'\toolbox\coder\connectivity_targetservices\targetframework;', ...
-     matlabroot,'\toolbox\coder\connectivity_targetservices\common;', ...
-     matlabroot,'\toolbox\coder\connectivity_targetservices\dispatch;', ...
-     matlabroot,'\toolbox\coder\coverage;', ...
-     matlabroot,'\toolbox\rtw\rtw;', ...
-     matlabroot,'\toolbox\coder\foundation;', ...
-     matlabroot,'\toolbox\coder\foundation\build\tools\registry;', ...
-     matlabroot,'\toolbox\coder\foundation\tfl;', ...
-     matlabroot,'\toolbox\coder\foundation\tfl\autosar\autosar4p0\ifx;', ...
-     matlabroot,'\toolbox\coder\foundation\tfl\autosar\autosar4p0\ifl;', ...
-     matlabroot,'\toolbox\coder\foundation\tfl\gui;', ...
-     matlabroot,'\toolbox\coder\foundation\templates;', ...
-     matlabroot,'\toolbox\shared\simtargets;', ...
-     matlabroot,'\toolbox\coder\matlabcoder;', ...
-     matlabroot,'\toolbox\coder\matlabcoder\templates;', ...
-     matlabroot,'\toolbox\coder\profile;', ...
-     matlabroot,'\toolbox\coder\rtiostream;', ...
-     matlabroot,'\toolbox\coder\sltoolstrip_base_hw\m;', ...
-     matlabroot,'\toolbox\coder\targetreg;', ...
-     matlabroot,'\toolbox\eml\eml;', ...
-     matlabroot,'\toolbox\coder\trace;', ...
-     matlabroot,'\toolbox\coder\wizard;', ...
-     matlabroot,'\toolbox\coder\xcp;', ...
-     matlabroot,'\toolbox\coder\extmode\xcp_classic_trig\plugin\m;', ...
-     matlabroot,'\toolbox\coder\xrel;', ...
-     matlabroot,'\toolbox\coder\xrelimport;', ...
-     matlabroot,'\toolbox\collaboration\comments\mi\m;', ...
-     matlabroot,'\toolbox\comm\comm;', ...
-     matlabroot,'\toolbox\comm\commutilities\comminit;', ...
-     matlabroot,'\toolbox\comm\commutilities\commmex;', ...
-     matlabroot,'\toolbox\comm\commutilities;', ...
-     matlabroot,'\toolbox\comm\commdeprecated;', ...
-     matlabroot,'\toolbox\comm\comm\compiled;', ...
-     matlabroot,'\toolbox\comm\cdma2000;', ...
-     matlabroot,'\toolbox\comm\commhdloptimized;', ...
-     matlabroot,'\toolbox\comm\commhdloptimized\commutilities;', ...
-     matlabroot,'\toolbox\comm\commdemos;', ...
-     matlabroot,'\help\toolbox\comm\examples;', ...
-     matlabroot,'\toolbox\comm\templates;', ...
-     matlabroot,'\toolbox\shared\comparisons;', ...
-     matlabroot,'\toolbox\comparisons\view\edits;', ...
-     matlabroot,'\toolbox\simulink\compiled_model_interface;', ...
-     matlabroot,'\toolbox\compiler_sdk\cli\build;', ...
-     matlabroot,'\toolbox\compiler_sdk\java;', ...
-     matlabroot,'\toolbox\compiler\cli\build;', ...
-     matlabroot,'\toolbox\compiler\cli\package;', ...
-     matlabroot,'\toolbox\compiler;', ...
-     matlabroot,'\toolbox\compiler\compilerdemos;', ...
-     matlabroot,'\toolbox\compiler_sdk\getting_started\src;', ...
-     matlabroot,'\toolbox\compiler\java;', ...
-     matlabroot,'\toolbox\compiler_sdk;', ...
-     matlabroot,'\toolbox\compiler\mltall;', ...
-     matlabroot,'\toolbox\compiler\utils\utils;', ...
-     matlabroot,'\toolbox\matlab\configtools;', ...
-     matlabroot,'\toolbox\matlab\connector2\common;', ...
-     matlabroot,'\toolbox\matlab\connector2\configuration;', ...
-     matlabroot,'\toolbox\matlab\connector2\connector;', ...
-     matlabroot,'\toolbox\matlab\connector2\editor;', ...
-     matlabroot,'\toolbox\matlab\connector2\figures;', ...
-     matlabroot,'\toolbox\matlab\connector2\http;', ...
-     matlabroot,'\toolbox\matlab\connector2\interpreter;', ...
-     matlabroot,'\toolbox\matlab\connector2\logger;', ...
-     matlabroot,'\toolbox\matlab\connector2\messageservice;', ...
-     matlabroot,'\toolbox\matlab\connector2\mgg;', ...
-     matlabroot,'\toolbox\matlab\connector2\nativebridge;', ...
-     matlabroot,'\toolbox\matlab\connector2\restmatlab;', ...
-     matlabroot,'\toolbox\matlab\connector2\session;', ...
-     matlabroot,'\toolbox\matlab\connector2\shadowfiles;', ...
-     matlabroot,'\toolbox\matlab\connector2\worker;', ...
-     matlabroot,'\toolbox\control\control;', ...
-     matlabroot,'\toolbox\control\ctrlmodels;', ...
-     matlabroot,'\toolbox\control\ctrlanalysis;', ...
-     matlabroot,'\toolbox\control\ctrldesign;', ...
-     matlabroot,'\toolbox\control\ctrlplots;', ...
-     matlabroot,'\toolbox\control\ctrlguis;', ...
-     matlabroot,'\toolbox\control\ctrlobsolete;', ...
-     matlabroot,'\toolbox\control\ctrlutil;', ...
-     matlabroot,'\toolbox\control\ctrldemos;', ...
-     matlabroot,'\help\toolbox\control\examples;', ...
-     matlabroot,'\toolbox\shared\cosimservice\ddg;', ...
-     matlabroot,'\toolbox\shared\cosimservice\src\cosimcompiledportattribs;', ...
-     matlabroot,'\toolbox\matlab\external\interfaces\cpp;', ...
-     matlabroot,'\toolbox\matlab\reports;', ...
-     matlabroot,'\toolbox\curvefit\curvefit;', ...
-     matlabroot,'\toolbox\curvefit\splines;', ...
-     matlabroot,'\toolbox\curvefit\sftoolgui;', ...
-     matlabroot,'\toolbox\curvefit\curvefitdemos;', ...
-     matlabroot,'\toolbox\da;', ...
-     matlabroot,'\toolbox\daq\daq;', ...
-     matlabroot,'\toolbox\daq\apps\daqaiapplet;', ...
-     matlabroot,'\toolbox\daq\apps\daqaoapplet;', ...
-     matlabroot,'\toolbox\daq\apps\shared;', ...
-     matlabroot,'\toolbox\daq\cli;', ...
-     matlabroot,'\toolbox\daq\daqdemos;', ...
-     matlabroot,'\toolbox\daq\apps\provider;', ...
-     matlabroot,'\toolbox\daq\daqsdk\bin\win64;', ...
-     matlabroot,'\toolbox\daq\daqsdk;', ...
-     matlabroot,'\toolbox\daq\daqsdk\tests;', ...
-     matlabroot,'\toolbox\daq\daqblks;', ...
-     matlabroot,'\toolbox\daq\daqblks\daqsfcn;', ...
-     matlabroot,'\toolbox\dashboard\algorithms\ml;', ...
-     matlabroot,'\toolbox\dashboard\api\ml;', ...
-     matlabroot,'\toolbox\dashboard\ui\ml;', ...
-     matlabroot,'\toolbox\dashboard\datamodel_ml\ml;', ...
-     matlabroot,'\toolbox\dashboard\demos;', ...
-     matlabroot,'\toolbox\dashboard\slcov_algorithm_factory\ml;', ...
-     matlabroot,'\toolbox\dashboard\slreq_algorithm_factory\ml;', ...
-     matlabroot,'\toolbox\dashboard\sltest_algorithm_factory\ml;', ...
-     matlabroot,'\toolbox\dashboard\uidatamodel\ml;', ...
-     matlabroot,'\toolbox\database\database;', ...
-     matlabroot,'\toolbox\database\dbdata;', ...
-     matlabroot,'\toolbox\shared\datacreation;', ...
-     matlabroot,'\toolbox\shared\datacreation\task;', ...
-     matlabroot,'\toolbox\shared\datacreation\task\codegenerator;', ...
-     matlabroot,'\toolbox\shared\datacreation\task\interface;', ...
-     matlabroot,'\toolbox\shared\datacreation\task\ui;', ...
-     matlabroot,'\toolbox\shared\datacreation\uicomponent;', ...
-     matlabroot,'\toolbox\datafeed\datafeed;', ...
-     matlabroot,'\toolbox\datafeed\datafeeddemos;', ...
-     matlabroot,'\toolbox\datafeed\dfgui;', ...
-     matlabroot,'\toolbox\matlab\datatools\datatoolsservices\matlab;', ...
-     matlabroot,'\toolbox\matlab\datatools\editorconverters\matlab;', ...
-     matlabroot,'\toolbox\matlab\datatools\importtool\matlab\peer;', ...
-     matlabroot,'\toolbox\matlab\datatools\importtool\matlab\server;', ...
-     matlabroot,'\toolbox\matlab\datatools\inspector\matlab;', ...
-     matlabroot,'\toolbox\matlab\datatools\inspector\registration;', ...
-     matlabroot,'\toolbox\matlab\datatools\peermodel_mcos\matlab;', ...
-     matlabroot,'\toolbox\matlab\datatools\plotstab\matlab;', ...
-     matlabroot,'\toolbox\matlab\datatools\variableeditor\matlab;', ...
-     matlabroot,'\toolbox\matlab\datatools\workspacebrowser\matlab;', ...
-     matlabroot,'\toolbox\matlab\ddux;', ...
-     matlabroot,'\toolbox\matlab\debugger;', ...
-     matlabroot,'\toolbox\matlab\dependency\analysis;', ...
-     matlabroot,'\toolbox\matlab\dependency\app;', ...
-     matlabroot,'\toolbox\matlab\dependency\report;', ...
-     matlabroot,'\toolbox\simulink\dependency\analysis;', ...
-     matlabroot,'\toolbox\simulink\dependency\app;', ...
-     matlabroot,'\toolbox\simulink\dependency\buses;', ...
-     matlabroot,'\toolbox\dig\dig;', ...
-     matlabroot,'\toolbox\dnnfpga\dnnfpga;', ...
-     matlabroot,'\toolbox\dnnfpga\dnnfpga\lib;', ...
-     matlabroot,'\toolbox\dotnetbuilder\dotnetbuilder;', ...
-     matlabroot,'\toolbox\hdlverifier\dpigenerator;', ...
-     matlabroot,'\toolbox\hdlverifier\dpigenerator\src;', ...
-     matlabroot,'\toolbox\hdlverifier\dpigenerator\src\dpiblkscb;', ...
-     matlabroot,'\toolbox\hdlverifier\dpigenerator\dpiblklib;', ...
-     matlabroot,'\toolbox\hdlverifier\dpigenerator\rtw;', ...
-     matlabroot,'\toolbox\driving\driving;', ...
-     matlabroot,'\toolbox\driving\drivingdata;', ...
-     matlabroot,'\toolbox\driving\drivingutilities;', ...
-     matlabroot,'\toolbox\shared\drivingscenario;', ...
-     matlabroot,'\toolbox\shared\drivingutils;', ...
-     matlabroot,'\toolbox\shared\drivingvisuals;', ...
-     matlabroot,'\toolbox\driving\drivingdemos;', ...
-     matlabroot,'\toolbox\dsp\dsp;', ...
-     matlabroot,'\toolbox\dsp\dsputilities;', ...
-     matlabroot,'\toolbox\dsp\dsputilities\crl;', ...
-     matlabroot,'\toolbox\dsp\dsputilities\dspinit;', ...
-     matlabroot,'\toolbox\dsp\dsputilities\dspmex;', ...
-     matlabroot,'\toolbox\dsp\dsp\compiled;', ...
-     matlabroot,'\toolbox\dsp\dsphdl;', ...
-     matlabroot,'\toolbox\dsp\dsphdl\compiled;', ...
-     matlabroot,'\toolbox\dsp\dsphdl\dsputilities;', ...
-     matlabroot,'\toolbox\dsp\dspdemos;', ...
-     matlabroot,'\help\toolbox\dsp\examples;', ...
-     matlabroot,'\toolbox\shared\spc\src_ml;', ...
-     matlabroot,'\toolbox\shared\dsp\simulink\dsp;', ...
-     matlabroot,'\toolbox\dsp\templates;', ...
-     matlabroot,'\toolbox\rtw\targets\ecoder;', ...
-     matlabroot,'\toolbox\rtw\targets\mpt;', ...
-     matlabroot,'\toolbox\rtw\targets\mpt\mpt;', ...
-     matlabroot,'\toolbox\rtw\targets\mpt\user_specific;', ...
-     matlabroot,'\toolbox\coder\embeddedcoder;', ...
-     matlabroot,'\toolbox\rtw\targets\ecoder\ecoderdemos\dataclasses;', ...
-     matlabroot,'\toolbox\rtw\targets\ecoder\ecoderdemos;', ...
-     matlabroot,'\toolbox\econ\econ;', ...
-     matlabroot,'\toolbox\econ\econdata;', ...
-     matlabroot,'\toolbox\econ\econguis;', ...
-     matlabroot,'\toolbox\edalink\edalink;', ...
-     matlabroot,'\toolbox\hdlverifier\hdlverifier;', ...
-     matlabroot,'\toolbox\edalink\sltoolstrip\m;', ...
-     matlabroot,'\toolbox\edalink\foundation\hdllink;', ...
-     matlabroot,'\toolbox\simulink\edittimeui;', ...
-     matlabroot,'\toolbox\coder\embeddedcoder_templates;', ...
-     matlabroot,'\toolbox\matlab\embeddedoutputs\figureoutputs;', ...
-     matlabroot,'\toolbox\matlab\embeddedoutputs\outputs;', ...
-     matlabroot,'\toolbox\matlab\embeddedoutputs\outpututilities;', ...
-     matlabroot,'\toolbox\matlab\embeddedoutputs\variableoutputs;', ...
-     matlabroot,'\toolbox\matlab\external\engines\engine_api;', ...
-     matlabroot,'\examples\5g\data;', ...
-     matlabroot,'\examples\aero\data;', ...
-     matlabroot,'\examples\antenna\data;', ...
-     matlabroot,'\examples\audio\data;', ...
-     matlabroot,'\examples\autoblks\data;', ...
-     matlabroot,'\examples\autonomous_control\data;', ...
-     matlabroot,'\examples\autosarblockset\data;', ...
-     matlabroot,'\examples\bioinfo\data;', ...
-     matlabroot,'\examples\bluetooth\data;', ...
-     matlabroot,'\examples\coder\data;', ...
-     matlabroot,'\examples\coder_compiler_dsp\data;', ...
-     matlabroot,'\examples\comm\data;', ...
-     matlabroot,'\examples\comm_hdlcoder\data;', ...
-     matlabroot,'\examples\comm_simrf\data;', ...
-     matlabroot,'\examples\control\data;', ...
-     matlabroot,'\examples\controls_id\data;', ...
-     matlabroot,'\examples\control_deeplearning\data;', ...
-     matlabroot,'\examples\daq\data;', ...
-     matlabroot,'\examples\daq_stateflow\data;', ...
-     matlabroot,'\examples\database\data;', ...
-     matlabroot,'\examples\deeplearning_shared\data;', ...
-     matlabroot,'\examples\dlhdl\data;', ...
-     matlabroot,'\examples\driving\data;', ...
-     matlabroot,'\examples\driving_fusion\data;', ...
-     matlabroot,'\examples\driving_fusion_vision\data;', ...
-     matlabroot,'\examples\driving_stateflow\data;', ...
-     matlabroot,'\examples\dsp\data;', ...
-     matlabroot,'\examples\dsp_hdlcoder\data;', ...
-     matlabroot,'\examples\ecoder\data;', ...
-     matlabroot,'\examples\econ\data;', ...
-     matlabroot,'\examples\finance\data;', ...
-     matlabroot,'\examples\fininst\data;', ...
-     matlabroot,'\examples\fixedpoint\data;', ...
-     matlabroot,'\examples\fusion\data;', ...
-     matlabroot,'\examples\fuzzy\data;', ...
-     matlabroot,'\examples\globaloptim\data;', ...
-     matlabroot,'\examples\gpucoder\data;', ...
-     matlabroot,'\examples\graphics\data;', ...
-     matlabroot,'\examples\hdlcoder\data;', ...
-     matlabroot,'\examples\hdlverifier\data;', ...
-     matlabroot,'\examples\ident\data;', ...
-     matlabroot,'\examples\images\data;', ...
-     matlabroot,'\examples\imaq\data;', ...
-     matlabroot,'\examples\instrument\data;', ...
-     matlabroot,'\examples\lidar\data;', ...
-     matlabroot,'\examples\lte\data;', ...
-     matlabroot,'\examples\ltehdl\data;', ...
-     matlabroot,'\examples\map\data;', ...
-     matlabroot,'\examples\matlab\data;', ...
-     matlabroot,'\examples\matlabmobile\data;', ...
-     matlabroot,'\examples\mcb\data;', ...
-     matlabroot,'\examples\mpc\data;', ...
-     matlabroot,'\examples\msblks\data;', ...
-     matlabroot,'\examples\nav\data;', ...
-     matlabroot,'\examples\nav_lidar\data;', ...
-     matlabroot,'\examples\nav_robotics\data;', ...
-     matlabroot,'\examples\nnet\data;', ...
-     matlabroot,'\examples\opc\data;', ...
-     matlabroot,'\examples\optim\data;', ...
-     matlabroot,'\examples\parallel\data;', ...
-     matlabroot,'\examples\pde\data;', ...
-     matlabroot,'\examples\phased\data;', ...
-     matlabroot,'\examples\phased_comm\data;', ...
-     matlabroot,'\examples\plantdeployment\data;', ...
-     matlabroot,'\examples\plccoder\data;', ...
-     matlabroot,'\examples\predmaint\data;', ...
-     matlabroot,'\examples\predmaint_shared\data;', ...
-     matlabroot,'\examples\rf\data;', ...
-     matlabroot,'\examples\rf_serdes\data;', ...
-     matlabroot,'\examples\risk\data;', ...
-     matlabroot,'\examples\rl\data;', ...
-     matlabroot,'\examples\robotics\data;', ...
-     matlabroot,'\examples\robust\data;', ...
-     matlabroot,'\examples\ros\data;', ...
-     matlabroot,'\examples\rptgen\data;', ...
-     matlabroot,'\examples\rptgenext\data;', ...
-     matlabroot,'\examples\serdes\data;', ...
-     matlabroot,'\examples\shared_driving_fusion_lidar\data;', ...
-     matlabroot,'\examples\shared_fusion_arduinoio\data;', ...
-     matlabroot,'\examples\shared_positioning\data;', ...
-     matlabroot,'\examples\signal\data;', ...
-     matlabroot,'\examples\simbio\data;', ...
-     matlabroot,'\examples\simevents\data;', ...
-     matlabroot,'\examples\simrf\data;', ...
-     matlabroot,'\examples\simscape\data;', ...
-     matlabroot,'\examples\simscape_shared\data;', ...
-     matlabroot,'\examples\simulink\data;', ...
-     matlabroot,'\examples\simulinkcoder\data;', ...
-     matlabroot,'\examples\simulinkcompiler\data;', ...
-     matlabroot,'\examples\simulinktest\data;', ...
-     matlabroot,'\examples\simulink_aerospace\data;', ...
-     matlabroot,'\examples\simulink_automotive\data;', ...
-     matlabroot,'\examples\simulink_general\data;', ...
-     matlabroot,'\examples\simulink_industrial\data;', ...
-     matlabroot,'\examples\sl3d\data;', ...
-     matlabroot,'\examples\slcheck\data;', ...
-     matlabroot,'\examples\slcontrol\data;', ...
-     matlabroot,'\examples\slcoverage\data;', ...
-     matlabroot,'\examples\sldo\data;', ...
-     matlabroot,'\examples\sldrt\data;', ...
-     matlabroot,'\examples\sldv\data;', ...
-     matlabroot,'\examples\slrealtime\data;', ...
-     matlabroot,'\examples\slrequirements\data;', ...
-     matlabroot,'\examples\sm\data;', ...
-     matlabroot,'\examples\soc\data;', ...
-     matlabroot,'\examples\spc_channel\data;', ...
-     matlabroot,'\examples\sps\data;', ...
-     matlabroot,'\examples\stateflow\data;', ...
-     matlabroot,'\examples\stats\data;', ...
-     matlabroot,'\examples\symbolic\data;', ...
-     matlabroot,'\examples\systemcomposer\data;', ...
-     matlabroot,'\examples\textanalytics\data;', ...
-     matlabroot,'\examples\uav\data;', ...
-     matlabroot,'\examples\vdynblks\data;', ...
-     matlabroot,'\examples\vision\data;', ...
-     matlabroot,'\examples\visionhdl\data;', ...
-     matlabroot,'\examples\visionhdl_hdlcoder\data;', ...
-     matlabroot,'\examples\vnt\data;', ...
-     matlabroot,'\examples\vnt_driving\data;', ...
-     matlabroot,'\examples\wavelet\data;', ...
-     matlabroot,'\examples\wlan\data;', ...
-     matlabroot,'\examples\wlan_phased\data;', ...
-     matlabroot,'\toolbox\exlink;', ...
-     matlabroot,'\toolbox\experiments\experiments;', ...
-     matlabroot,'\toolbox\matlab\filebrowser;', ...
-     matlabroot,'\toolbox\dsp\filterdesign;', ...
-     matlabroot,'\toolbox\finance\calendar;', ...
-     matlabroot,'\toolbox\finance\finance;', ...
-     matlabroot,'\toolbox\finance\finsupport;', ...
-     matlabroot,'\toolbox\finance\ftseries;', ...
-     matlabroot,'\toolbox\finance\bigdata;', ...
-     matlabroot,'\toolbox\finance\findemos;', ...
-     matlabroot,'\toolbox\matlab\findfiles\m;', ...
-     matlabroot,'\toolbox\fininst\fininst;', ...
-     matlabroot,'\toolbox\fininst\fininstdemos;', ...
-     matlabroot,'\toolbox\fixedpoint\fixedpointconverter;', ...
-     matlabroot,'\toolbox\fixedpoint\fixedpointtool;', ...
-     matlabroot,'\toolbox\fixedpoint\fidemos;', ...
-     matlabroot,'\toolbox\fixedpoint\embeddedlib;', ...
-     matlabroot,'\toolbox\fixedpoint\fixedpoint;', ...
-     matlabroot,'\toolbox\fixpoint;', ...
-     matlabroot,'\toolbox\fixpoint\fxptopo;', ...
-     matlabroot,'\toolbox\fixpoint\restorepoint;', ...
-     matlabroot,'\toolbox\fixpoint\evolutions;', ...
-     matlabroot,'\toolbox\fixpoint\fixed;', ...
-     matlabroot,'\toolbox\simulink\fixedandfloat\fxpdemos;', ...
-     matlabroot,'\toolbox\coder\float2fixed;', ...
-     matlabroot,'\toolbox\coder\float2fixed\demos;', ...
-     matlabroot,'\toolbox\coder\float2fixed\dmm_emlauthoring;', ...
-     matlabroot,'\toolbox\coder\float2fixed\custom_logger;', ...
-     matlabroot,'\toolbox\coder\float2fixed\mathlib;', ...
-     matlabroot,'\toolbox\shared\fmu_base;', ...
-     matlabroot,'\toolbox\shared\fmu_block;', ...
-     matlabroot,'\toolbox\shared\simulink\fmuexport;', ...
-     matlabroot,'\toolbox\shared\fmu_share\fmuexport;', ...
-     matlabroot,'\toolbox\fusion\fusion;', ...
-     matlabroot,'\toolbox\fusion\fusiondata;', ...
-     matlabroot,'\toolbox\fusion\simulink;', ...
-     matlabroot,'\toolbox\fuzzy\fuzzy;', ...
-     matlabroot,'\toolbox\fuzzy\fuzzyutil;', ...
-     matlabroot,'\toolbox\fuzzy\fuzdemos;', ...
-     matlabroot,'\toolbox\matlab\uitools\uicomponents\components;', ...
-     matlabroot,'\toolbox\geoweb\geoweb;', ...
-     matlabroot,'\toolbox\globaloptim;', ...
-     matlabroot,'\toolbox\globaloptim\globaloptim;', ...
-     matlabroot,'\toolbox\globaloptim\globaloptimdemos;', ...
-     matlabroot,'\toolbox\gpucoder\gpucoder;', ...
-     matlabroot,'\toolbox\gpucoder\gpucoder\foundation\build;', ...
-     matlabroot,'\toolbox\gpucoder\gpucoderdemos;', ...
-     matlabroot,'\toolbox\coder\half;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlcoder;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlcoder\hdlutils;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlcoder\hdlwa;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlssc\hdlsscworkflowadvisor;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlssc;', ...
-     matlabroot,'\toolbox\hdlcoder\toolstrip\mfiles;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlcoderdemos;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlcoderdemos\matlabhdlcoderdemos;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlcoderdemos\simscapehdldemos;', ...
-     matlabroot,'\toolbox\hdlcoder\filters;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlcommon;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlcommon\modelcheckeradvisor;', ...
-     matlabroot,'\toolbox\hdlfilter\hdlfilter;', ...
-     matlabroot,'\toolbox\hdlcoder\hdllib\ml_lib;', ...
-     matlabroot,'\toolbox\hdlcoder\hdllib\sl_lib;', ...
-     matlabroot,'\toolbox\hdlcoder\hdlslrt;', ...
-     matlabroot,'\toolbox\hdlverifier\hdlverifier_examples;', ...
-     matlabroot,'\toolbox\shared\hadoopserializer;', ...
-     matlabroot,'\toolbox\shared\appdes\services;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwconnection;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwmanagerapp;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwmanagerapp\devicedetection;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwmanagerapp\devices;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwmanagerapp\providers;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwmanagerapp\plugins;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwmanagerapp\hwsetup;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwmanagerapp\devicedata;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwservices\hwinfo;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwsetup;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwsetup\hwwidgets;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwsetup\hwtemplates;', ...
-     matlabroot,'\toolbox\shared\hwmanager\hwsetup\launch;', ...
-     matlabroot,'\toolbox\shared\hwmanager\logger;', ...
-     matlabroot,'\toolbox\simulink\iconeditor;', ...
-     matlabroot,'\toolbox\idelink\extensions\ticcs;', ...
-     matlabroot,'\toolbox\idelink\extensions\ticcs\ccsblks;', ...
-     matlabroot,'\toolbox\idelink\foundation\pjtgenerator;', ...
-     matlabroot,'\toolbox\idelink\foundation\pjtgenerator\rtw;', ...
-     matlabroot,'\toolbox\idelink\foundation\pjtgenerator\tgtpref2;', ...
-     matlabroot,'\toolbox\idelink\foundation\pjtgenerator\profiler;', ...
-     matlabroot,'\toolbox\idelink\foundation\pjtgenerator\mdlinfo;', ...
-     matlabroot,'\toolbox\idelink\foundation\pjtgenerator\blks;', ...
-     matlabroot,'\toolbox\idelink\foundation\pjtgenerator\blks\masks;', ...
-     matlabroot,'\toolbox\idelink\foundation\pjtgenerator\blks\tlc_c;', ...
-     matlabroot,'\toolbox\idelink\foundation;', ...
-     matlabroot,'\toolbox\idelink\foundation\autointerface;', ...
-     matlabroot,'\toolbox\idelink\foundation\autointerface\ideregisterplugins;', ...
-     matlabroot,'\toolbox\idelink\foundation\util;', ...
-     matlabroot,'\toolbox\idelink\foundation\errorhandler;', ...
-     matlabroot,'\toolbox\idelink\foundation\xmakefile;', ...
-     matlabroot,'\toolbox\idelink\foundation\hookpoints;', ...
-     matlabroot,'\toolbox\idelink\idelinkdemos;', ...
-     matlabroot,'\toolbox\ident\ident;', ...
-     matlabroot,'\toolbox\ident\nlident;', ...
-     matlabroot,'\toolbox\ident\idobsolete;', ...
-     matlabroot,'\toolbox\ident\idguis;', ...
-     matlabroot,'\toolbox\ident\idutils;', ...
-     matlabroot,'\toolbox\ident\idrecursive;', ...
-     matlabroot,'\toolbox\ident\idhelp;', ...
-     matlabroot,'\toolbox\ident\iddemos;', ...
-     matlabroot,'\toolbox\ident\iddemos\examples;', ...
-     matlabroot,'\toolbox\images\colorspaces;', ...
-     matlabroot,'\toolbox\images\images;', ...
-     matlabroot,'\toolbox\images\imdata;', ...
-     matlabroot,'\toolbox\images\imuitools;', ...
-     matlabroot,'\toolbox\images\iptformats;', ...
-     matlabroot,'\toolbox\images\iptutils;', ...
-     matlabroot,'\toolbox\matlab\imagesci;', ...
-     matlabroot,'\toolbox\images\deep;', ...
-     matlabroot,'\toolbox\images\imdemos;', ...
-     matlabroot,'\toolbox\imaq\imaq;', ...
-     matlabroot,'\toolbox\imaq\apps\provider;', ...
-     matlabroot,'\toolbox\imaq\imaqdemos;', ...
-     matlabroot,'\toolbox\imaq\imaqblks\imaqblks;', ...
-     matlabroot,'\toolbox\imaq\imaqblks\imaqmex;', ...
-     matlabroot,'\toolbox\imaq\imaqblks\imaqmasks;', ...
-     matlabroot,'\toolbox\edalink\extensions\incisive\incisive;', ...
-     matlabroot,'\toolbox\edalink\extensions\incisive\incisivedemos;', ...
-     matlabroot,'\toolbox\instrument\instrument;', ...
-     matlabroot,'\toolbox\instrument\instrumentblks\instrumentblks;', ...
-     matlabroot,'\toolbox\instrument\instrumentblks\instrumentmex;', ...
-     matlabroot,'\toolbox\instrument\instrumentblks\instrumentmasks;', ...
-     matlabroot,'\toolbox\instrument\apps\modbusapplet;', ...
-     matlabroot,'\toolbox\instrument\apps\provider;', ...
-     matlabroot,'\toolbox\shared\instrument;', ...
-     matlabroot,'\toolbox\instrument\interface\udpport;', ...
-     matlabroot,'\toolbox\shared\spcuilib\iomanager;', ...
-     matlabroot,'\toolbox\learning\simulink\core\m;', ...
-     matlabroot,'\toolbox\simulink\libcodegen_harness\libcodegen_harness;', ...
-     matlabroot,'\toolbox\lidar\lidar;', ...
-     matlabroot,'\toolbox\lidar\lidardata;', ...
-     matlabroot,'\toolbox\shared\spcuilib\logicanalyzer;', ...
-     matlabroot,'\toolbox\lte\lte;', ...
-     matlabroot,'\toolbox\shared\m3i;', ...
-     matlabroot,'\toolbox\map\graphics;', ...
-     matlabroot,'\toolbox\map\map;', ...
-     matlabroot,'\toolbox\map\mapgeodesy;', ...
-     matlabroot,'\toolbox\map\mapdisp;', ...
-     matlabroot,'\toolbox\map\mapformats;', ...
-     matlabroot,'\toolbox\map\mapproj;', ...
-     matlabroot,'\toolbox\map\mapobsolete;', ...
-     matlabroot,'\toolbox\map\mapdata;', ...
-     matlabroot,'\toolbox\simulink\mask\iconeditor;', ...
-     matlabroot,'\toolbox\shared\spcuilib\matrixviewer;', ...
-     matlabroot,'\toolbox\mbc\mbc;', ...
-     matlabroot,'\toolbox\mbc\mbcdata;', ...
-     matlabroot,'\toolbox\mbc\mbcdesign;', ...
-     matlabroot,'\toolbox\mbc\mbcexpr;', ...
-     matlabroot,'\toolbox\mbc\mbcguitools;', ...
-     matlabroot,'\toolbox\mbc\mbclayouts;', ...
-     matlabroot,'\toolbox\mbc\mbcmodels;', ...
-     matlabroot,'\toolbox\mbc\mbcsimulink;', ...
-     matlabroot,'\toolbox\mbc\mbctools;', ...
-     matlabroot,'\toolbox\mbc\mbcview;', ...
-     matlabroot,'\toolbox\mbc\mbcdemos;', ...
-     matlabroot,'\toolbox\mcb;', ...
-     matlabroot,'\toolbox\mcb\mcbblocks;', ...
-     matlabroot,'\toolbox\mcb\mcbexamples;', ...
-     matlabroot,'\toolbox\mps\discovery;', ...
-     matlabroot,'\toolbox\mps\json;', ...
-     matlabroot,'\toolbox\mps\persistence;', ...
-     matlabroot,'\toolbox\matlab\mex;', ...
-     matlabroot,'\toolbox\matlab\external\mex;', ...
-     matlabroot,'\toolbox\shared\mldatx;', ...
-     matlabroot,'\toolbox\compiler\mlhadoop;', ...
-     matlabroot,'\toolbox\mlreportgen\rpt2api;', ...
-     matlabroot,'\toolbox\compiler\mlspark;', ...
-     matlabroot,'\toolbox\edalink\extensions\modelsim\modelsim;', ...
-     matlabroot,'\toolbox\edalink\extensions\modelsim\modelsimdemos;', ...
-     matlabroot,'\toolbox\mpc\mpc;', ...
-     matlabroot,'\toolbox\mpc\mpcguis;', ...
-     matlabroot,'\toolbox\mpc\mpcobsolete;', ...
-     matlabroot,'\toolbox\mpc\mpcutils;', ...
-     matlabroot,'\toolbox\mpc\mpcdemos;', ...
-     matlabroot,'\toolbox\msblks\msblks;', ...
-     matlabroot,'\toolbox\msblks\msblksutilities;', ...
-     matlabroot,'\toolbox\msblks\msblksmex;', ...
-     matlabroot,'\toolbox\multisim;', ...
-     matlabroot,'\toolbox\simulink\multisim\main;', ...
-     matlabroot,'\ui\mw-webwindow\mw-webwindow-m;', ...
-     matlabroot,'\toolbox\nav\navalgs;', ...
-     matlabroot,'\toolbox\nav\navalgs2;', ...
-     matlabroot,'\toolbox\nav\nav;', ...
-     matlabroot,'\toolbox\nav\positioning\positioning;', ...
-     matlabroot,'\toolbox\nav\navsimulink;', ...
-     matlabroot,'\toolbox\nav\navsimulink\blockicons;', ...
-     matlabroot,'\toolbox\nav\navslamapp;', ...
-     matlabroot,'\toolbox\fixedpoint\ui\nedfunctionapproximationtool;', ...
-     matlabroot,'\toolbox\fixedpoint\ui\nedvisuals;', ...
-     matlabroot,'\toolbox\matlab\networklib;', ...
-     matlabroot,'\toolbox\nnet;', ...
-     matlabroot,'\toolbox\nnet\nncontrol;', ...
-     matlabroot,'\toolbox\nnet\nnet;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnadapt;', ...
-     matlabroot,'\toolbox\nnet\nnet\nndatafun;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnderivative;', ...
-     matlabroot,'\toolbox\nnet\nnet\nndistance;', ...
-     matlabroot,'\toolbox\nnet\nnet\nndivision;', ...
-     matlabroot,'\toolbox\nnet\nnet\nninitlayer;', ...
-     matlabroot,'\toolbox\nnet\nnet\nninitnetwork;', ...
-     matlabroot,'\toolbox\nnet\nnet\nninitweight;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnlearn;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnnetfun;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnnetinput;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnnetwork;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnperformance;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnplot;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnprocess;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnsearch;', ...
-     matlabroot,'\toolbox\nnet\nnet\nntopology;', ...
-     matlabroot,'\toolbox\nnet\nnet\nntrain;', ...
-     matlabroot,'\toolbox\nnet\nnet\nntransfer;', ...
-     matlabroot,'\toolbox\nnet\nnet\nnweight;', ...
-     matlabroot,'\toolbox\nnet\nnguis;', ...
-     matlabroot,'\toolbox\nnet\nnobsolete;', ...
-     matlabroot,'\toolbox\nnet\nnutils;', ...
-     matlabroot,'\toolbox\nnet\cnn;', ...
-     matlabroot,'\toolbox\nnet\cnn\spkgs;', ...
-     matlabroot,'\toolbox\nnet\deep;', ...
-     matlabroot,'\toolbox\nnet\deepapp;', ...
-     matlabroot,'\toolbox\nnet\deepviz;', ...
-     matlabroot,'\toolbox\nnet\deep_blocks;', ...
-     matlabroot,'\toolbox\nnet\nndemos;', ...
-     matlabroot,'\toolbox\nnet\nndemos\nndatasets;', ...
-     matlabroot,'\toolbox\nnet\deepviz\lime;', ...
-     matlabroot,'\toolbox\opc\opc;', ...
-     matlabroot,'\toolbox\opc\opcgui;', ...
-     matlabroot,'\toolbox\opc\opcblks\opcblks;', ...
-     matlabroot,'\toolbox\opc\opcblks\opcmasks;', ...
-     matlabroot,'\toolbox\opc\opcdemos;', ...
-     matlabroot,'\toolbox\opc\opcdemos\opcblksdemos;', ...
-     matlabroot,'\toolbox\optim\optim;', ...
-     matlabroot,'\toolbox\optim;', ...
-     matlabroot,'\toolbox\optim\optimdemos;', ...
-     matlabroot,'\toolbox\optim\problemdef;', ...
-     matlabroot,'\toolbox\parallel\bigdata;', ...
-     matlabroot,'\toolbox\parallel;', ...
-     matlabroot,'\toolbox\parallel\distcomp;', ...
-     matlabroot,'\toolbox\parallel\user;', ...
-     matlabroot,'\toolbox\parallel\mpi;', ...
-     matlabroot,'\toolbox\parallel\parallel;', ...
-     matlabroot,'\toolbox\parallel\parallel\util;', ...
-     matlabroot,'\toolbox\parallel\lang;', ...
-     matlabroot,'\toolbox\parallel\cluster;', ...
-     matlabroot,'\toolbox\parallel\gpu;', ...
-     matlabroot,'\toolbox\parallel\array;', ...
-     matlabroot,'\toolbox\parallel\pctdemos;', ...
-     matlabroot,'\toolbox\matlab\pathdataservice\pathdataservice-m;', ...
-     matlabroot,'\toolbox\matlab\pathtool;', ...
-     matlabroot,'\toolbox\pde;', ...
-     matlabroot,'\toolbox\pde\pdedata;', ...
-     matlabroot,'\toolbox\pde\pdedemos;', ...
-     matlabroot,'\toolbox\phased\phased;', ...
-     matlabroot,'\toolbox\phased\phasedapps;', ...
-     matlabroot,'\toolbox\phased\phaseddemos;', ...
-     matlabroot,'\toolbox\physmod\common\dataservices\gui\m;', ...
-     matlabroot,'\toolbox\physmod\common\dataservices\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\dataservices\sli\m;', ...
-     matlabroot,'\toolbox\physmod\common\data\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\exec\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\external\library\m;', ...
-     matlabroot,'\toolbox\physmod\common\external\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\foundation\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\foundation\sli\m;', ...
-     matlabroot,'\toolbox\physmod\common\gl\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\gl\sli\m;', ...
-     matlabroot,'\toolbox\physmod\common\gui\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\logging\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\logging\sli\m;', ...
-     matlabroot,'\toolbox\physmod\common\op\mli\m;', ...
-     matlabroot,'\toolbox\physmod\common\pi\sli\m;', ...
-     matlabroot,'\toolbox\physmod\common\units\mli\m;', ...
-     matlabroot,'\toolbox\physmod\elec\assistant\m\convclass\conv;', ...
-     matlabroot,'\toolbox\physmod\elec\assistant\m\convclass\conv\sl;', ...
-     matlabroot,'\toolbox\physmod\elec\assistant\m;', ...
-     matlabroot,'\toolbox\physmod\elec\assistant\m\utils;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\doc;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\adc_dac;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\amplifiers;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\communications;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\devicecharacteristics;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\electricdrives;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\energystorage;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\filters;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\highpowerconverters;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\logic;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\lowpowerconverters;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\oscillators;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\powergrids;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\renewables;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\robotics;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\thermal;', ...
-     matlabroot,'\toolbox\physmod\elec\eedemos\applications\vehiclesystems;', ...
-     matlabroot,'\toolbox\physmod\elec\library\m;', ...
-     matlabroot,'\toolbox\physmod\elec\sli\m;', ...
-     matlabroot,'\toolbox\physmod\elec\sli\sfun;', ...
-     matlabroot,'\toolbox\physmod\elec\spice\mosfets\m;', ...
-     matlabroot,'\toolbox\physmod\elec\spice2ssc\m;', ...
-     matlabroot,'\toolbox\physmod\elec\stubs\elec\m;', ...
-     matlabroot,'\toolbox\physmod\elec\stubs\pe\m;', ...
-     matlabroot,'\toolbox\physmod\elec\stubs\pe\sli;', ...
-     matlabroot,'\toolbox\physmod\elec\templates;', ...
-     matlabroot,'\toolbox\physmod\elec\utils\m;', ...
-     matlabroot,'\toolbox\physmod\fluids\fluids;', ...
-     matlabroot,'\toolbox\physmod\fluids\utils;', ...
-     matlabroot,'\toolbox\physmod\network_engine\network_engine;', ...
-     matlabroot,'\toolbox\physmod\ne_sli\ne_sli;', ...
-     matlabroot,'\toolbox\physmod\pm_sli\pm_sli;', ...
-     matlabroot,'\toolbox\physmod\powersys\powerdemo;', ...
-     matlabroot,'\toolbox\physmod\powersys\powerdemo\meascontrol;', ...
-     matlabroot,'\toolbox\physmod\powersys\powerdemo\power_utility;', ...
-     matlabroot,'\toolbox\physmod\powersys\dr\dr;', ...
-     matlabroot,'\toolbox\physmod\powersys\drives\drives;', ...
-     matlabroot,'\toolbox\physmod\powersys\drives\drivesdemo;', ...
-     matlabroot,'\toolbox\physmod\powersys\dr\drdemo;', ...
-     matlabroot,'\toolbox\physmod\powersys\facts\facts;', ...
-     matlabroot,'\toolbox\physmod\powersys\facts\factsdemo;', ...
-     matlabroot,'\toolbox\physmod\powersys\library;', ...
-     matlabroot,'\toolbox\physmod\powersys\powerdemo\machines;', ...
-     matlabroot,'\toolbox\physmod\powersys\powersys;', ...
-     matlabroot,'\toolbox\physmod\powersys\powerdemo\power_electronics;', ...
-     matlabroot,'\toolbox\physmod\powersys\powerdemo\simple;', ...
-     matlabroot,'\toolbox\physmod\powersys\templates;', ...
-     matlabroot,'\toolbox\physmod\sdl\sdl;', ...
-     matlabroot,'\toolbox\physmod\sdl\classic;', ...
-     matlabroot,'\toolbox\physmod\sdl\classic\blockicons;', ...
-     matlabroot,'\toolbox\physmod\sdl\advisor\m;', ...
-     matlabroot,'\toolbox\physmod\sdl\sdldemos;', ...
-     matlabroot,'\toolbox\physmod\sh\sh;', ...
-     matlabroot,'\toolbox\physmod\sh\sh_legacy;', ...
-     matlabroot,'\toolbox\physmod\sh\advisor\m;', ...
-     matlabroot,'\toolbox\physmod\sh\shdemos;', ...
-     matlabroot,'\toolbox\physmod\sh\utils;', ...
-     matlabroot,'\toolbox\physmod\simrf\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\advisor\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\compiler\mli\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\compiler\patterns\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\compiler\sli\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\simscapedemos;', ...
-     matlabroot,'\toolbox\physmod\simscape\simscapedemos\doc;', ...
-     matlabroot,'\toolbox\physmod\simscape\engine\library\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\engine\mli\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\engine\sli\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\foundation\simscape;', ...
-     matlabroot,'\toolbox\physmod\simscape\gui\mli\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\library\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\library\m\physical_signal_legacy;', ...
-     matlabroot,'\toolbox\physmod\simscape\logging\sli\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\op\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\probe\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\reg\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\simscape\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\sl_toolstrip\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\solver\m;', ...
-     matlabroot,'\toolbox\physmod\simscape\templates;', ...
-     matlabroot,'\toolbox\physmod\simscape\utils\m;', ...
-     matlabroot,'\toolbox\physmod\sm\core\m;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\wing_landing_gear;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\wing_landing_gear\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\cart_double_pendulum;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\cart_double_pendulum\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\stewart_platform;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\stewart_platform\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\double_crank_aiming;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\double_crank_aiming\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\bread_slicer;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\bread_slicer\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\import\stewart_platform;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\import\four_bar;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\radial_engine;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\radial_engine\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\double_wishbone_suspension;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\double_wishbone_suspension\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\import\robot;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\cardan_gear;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\cardan_gear\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\windshield_wiper;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\windshield_wiper\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\backhoe;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\robotic_wrist;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\carousel;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\welding_robot;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\import\robot_stepfiles;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\potters_wheel;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\linear_actuator;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\pto_shaft;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\cam_flapping_wing;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\vehicle_slalom;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\dump_trailer;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\interface_elements;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\solar_tracker;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\import\humanoid_urdf;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\suspension_templates;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\worm_jack;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\cable_robot;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\leadscrew_friction;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\block_tackle;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\block_tackle\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\drive_right_angle;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\drive_right_angle\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\tower_crane;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\tower_crane\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\common_gear;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\common_gear\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\cable_xy_table;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\cable_xy_table\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\sailboat;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\sailboat\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\sailboat\geometries;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\elevator;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\elevator\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\flexible_dipper_arm;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\flexible_dipper_arm\data;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\flexible_dipper_arm\geometries;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\flexible_dipper_arm\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\bumper_car;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\bumper_car\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\car_4post_testrig;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\car_4post_testrig\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\space_manipulator;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\space_manipulator\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\pick_and_place_robot;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\pick_and_place_robot\images;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\beams;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\bevel_gear;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\common_gear_external;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\common_gear_internal;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\rack_and_pinion;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\worm_and_gear;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\poc_cam;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\poc_flap;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\inertias;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\pulleys;', ...
-     matlabroot,'\toolbox\physmod\sm\smdemos\doc\pulleys\images;', ...
-     matlabroot,'\toolbox\physmod\sm\foundation\mech;', ...
-     matlabroot,'\toolbox\physmod\sm\gui\app\m;', ...
-     matlabroot,'\toolbox\physmod\sm\gui\gfx\m;', ...
-     matlabroot,'\toolbox\physmod\sm\import\m;', ...
-     matlabroot,'\toolbox\physmod\sm\local\m;', ...
-     matlabroot,'\toolbox\physmod\sm\mli\m;', ...
-     matlabroot,'\toolbox\physmod\sm\sli\m;', ...
-     matlabroot,'\toolbox\physmod\sm\sm\m;', ...
-     matlabroot,'\toolbox\physmod\sm\ssci\m;', ...
-     matlabroot,'\toolbox\physmod\sm\templates\m;', ...
-     matlabroot,'\toolbox\physmod\sps\sps;', ...
-     matlabroot,'\toolbox\plccoder\plccoder;', ...
-     matlabroot,'\toolbox\plccoder\plugins\omron;', ...
-     matlabroot,'\toolbox\plccoder\plugins\selectron;', ...
-     matlabroot,'\toolbox\plccoder\plugins\indraworks;', ...
-     matlabroot,'\toolbox\plccoder\plugins\studio5000;', ...
-     matlabroot,'\toolbox\plccoder\plugins\studio5000_routine;', ...
-     matlabroot,'\toolbox\plccoder\plugins\rslogix5000;', ...
-     matlabroot,'\toolbox\plccoder\plugins\rslogix5000_routine;', ...
-     matlabroot,'\toolbox\plccoder\plccoder\ladderlogic\code;', ...
-     matlabroot,'\toolbox\plccoder\plccoder\ladderlogic\targets\studio5000;', ...
-     matlabroot,'\toolbox\plccoder\plccoder\ladderlogic\plclib\studio5000;', ...
-     matlabroot,'\toolbox\plccoder\plccoderdemos;', ...
-     matlabroot,'\toolbox\plccoder\plccoderdemos\ladder_tankcontrol;', ...
-     matlabroot,'\toolbox\plccoder\plccoderdemos\ladder_househeat;', ...
-     matlabroot,'\toolbox\plccoder\plccoderdemos\ladder_drawworks;', ...
-     matlabroot,'\toolbox\plccoder\plccoderdemos\ladder_elevator;', ...
-     matlabroot,'\toolbox\shared\codeinstrum\codeinstrum;', ...
-     matlabroot,'\toolbox\shared\cxxfe_mi\cxxfe_mi;', ...
-     matlabroot,'\toolbox\shared\polyspace;', ...
-     matlabroot,'\toolbox\shared\polyspace\configure_mi;', ...
-     matlabroot,'\toolbox\predmaint\predmaint;', ...
-     matlabroot,'\toolbox\predmaint\predmaintguis;', ...
-     matlabroot,'\toolbox\predmaint\predmaintdemos;', ...
-     matlabroot,'\toolbox\matlab\profileviewer;', ...
-     matlabroot,'\toolbox\matlab\project;', ...
-     matlabroot,'\toolbox\matlab\project\example;', ...
-     matlabroot,'\toolbox\matlab\project\toolstrip;', ...
-     matlabroot,'\toolbox\simulink\simulink\slproject;', ...
-     matlabroot,'\toolbox\simulink\simulink\slproject\menu;', ...
-     matlabroot,'\toolbox\matlab\project\dependency;', ...
-     matlabroot,'\toolbox\matlab\project\unsavedchanges;', ...
-     matlabroot,'\toolbox\matlab\external\interfaces\python;', ...
-     matlabroot,'\toolbox\realtime;', ...
-     matlabroot,'\toolbox\realtime\realtime;', ...
-     matlabroot,'\toolbox\realtime\realtime\rtw;', ...
-     matlabroot,'\toolbox\simulink\record_playback;', ...
-     matlabroot,'\toolbox\simulink\record_playback\src;', ...
-     matlabroot,'\toolbox\matlab\resources_folder;', ...
-     matlabroot,'\toolbox\rf\rf;', ...
-     matlabroot,'\toolbox\rf\rfnetparamfiles;', ...
-     matlabroot,'\toolbox\rf\rftool;', ...
-     matlabroot,'\toolbox\rfblks\rfblks;', ...
-     matlabroot,'\toolbox\rfblks\rfblksmasks;', ...
-     matlabroot,'\toolbox\rfblks\rfblksmex;', ...
-     matlabroot,'\toolbox\matlab\richcontent_preview\matlab;', ...
-     matlabroot,'\toolbox\risk\risk;', ...
-     matlabroot,'\toolbox\risk\riskdata;', ...
-     matlabroot,'\toolbox\risk\bigdata;', ...
-     matlabroot,'\toolbox\rl\rl;', ...
-     matlabroot,'\toolbox\rl\rl\simulink;', ...
-     matlabroot,'\toolbox\rl\rl\simulink\libs;', ...
-     matlabroot,'\toolbox\rl\rl\simulink\models;', ...
-     matlabroot,'\toolbox\shared\roadnetwork;', ...
-     matlabroot,'\toolbox\robotics\robotics;', ...
-     matlabroot,'\toolbox\robotics\robotexamples;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\ros;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\ros\data\bags;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\ros\helpers;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotalgs;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotalgs\helpers;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotcore;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotcore\helpers;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotmanip;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotmanip\helpers;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotmanip\data\iiwa_description\urdf;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotmanip\data\sawyer_description\urdf;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotsimulink;', ...
-     matlabroot,'\toolbox\robotics\robotexamples\robotsimulink\helpers;', ...
-     matlabroot,'\toolbox\robotics\robotgazebo\gazebomatlab;', ...
-     matlabroot,'\toolbox\robotics\robotmanip;', ...
-     matlabroot,'\toolbox\robotics\robotmanip\robotmodels\robotmat;', ...
-     matlabroot,'\toolbox\robotics\robotmanip\robotmodels\roboturdf;', ...
-     matlabroot,'\toolbox\robotics\robotmobile;', ...
-     matlabroot,'\toolbox\robotics\robotsimulink;', ...
-     matlabroot,'\toolbox\robotics\robotsimulink\blockicons;', ...
-     matlabroot,'\toolbox\robotics\robotsimulink\robotslgazebo;', ...
-     matlabroot,'\toolbox\robotics\robotsimulink\robotslmanip;', ...
-     matlabroot,'\toolbox\robotics\robotsimulink\robotslmobile;', ...
-     matlabroot,'\toolbox\robust\robust;', ...
-     matlabroot,'\toolbox\robust\rctlmi;', ...
-     matlabroot,'\toolbox\robust\rctutil;', ...
-     matlabroot,'\toolbox\robust\rctobsolete\robust;', ...
-     matlabroot,'\toolbox\robust\rctobsolete\lmi;', ...
-     matlabroot,'\toolbox\robust\rctobsolete\mutools\commands;', ...
-     matlabroot,'\toolbox\robust\rctobsolete\mutools\subs;', ...
-     matlabroot,'\toolbox\robust\rctdemos;', ...
-     matlabroot,'\help\toolbox\robust\examples;', ...
-     matlabroot,'\toolbox\ros\codertarget;', ...
-     matlabroot,'\toolbox\ros\codertarget\registry;', ...
-     matlabroot,'\toolbox\ros\codertarget\tlc;', ...
-     matlabroot,'\toolbox\ros\mlros2;', ...
-     matlabroot,'\toolbox\ros\mlros2\registry;', ...
-     matlabroot,'\toolbox\ros\mlroscpp;', ...
-     matlabroot,'\toolbox\ros\mlroscpp\toolchain;', ...
-     matlabroot,'\toolbox\ros\mlroscpp\util;', ...
-     matlabroot,'\toolbox\ros\ros;', ...
-     matlabroot,'\toolbox\ros\sltoolstrip\m;', ...
-     matlabroot,'\toolbox\ros\slros2;', ...
-     matlabroot,'\toolbox\ros\slroscpp;', ...
-     matlabroot,'\toolbox\ros\utilities;', ...
-     matlabroot,'\toolbox\ros\utilities\icons;', ...
-     matlabroot,'\toolbox\rptgen\rptgen;', ...
-     matlabroot,'\toolbox\rptgenext\rptgenext;', ...
-     matlabroot,'\toolbox\rptgenext\rptgenextdemos;', ...
-     matlabroot,'\toolbox\rptgenext\slxmlcomp;', ...
-     matlabroot,'\toolbox\rptgenext\rptgenextdemos\slxmlcomp;', ...
-     matlabroot,'\toolbox\rptgen\rptgendemos;', ...
-     matlabroot,'\toolbox\rptgen\rptgendemos\domapi;', ...
-     matlabroot,'\toolbox\rptgen\xmlcomp;', ...
-     matlabroot,'\toolbox\matlab\serial;', ...
-     matlabroot,'\toolbox\matlab\rtc_addons\rtclanguagesupport\rtc_clike_language_support\matlab;', ...
-     matlabroot,'\toolbox\matlab\rtc_plugins\rtclanguagesupport\rtc_js_language_support\matlab;', ...
-     matlabroot,'\toolbox\matlab\rtc_addons\rtclanguagesupport\rtc_java_language_support\matlab;', ...
-     matlabroot,'\toolbox\matlab\rtc_addons\rtclanguagesupport\rtc_tlc_language_support\matlab;', ...
-     matlabroot,'\toolbox\matlab\rtc_addons\rtclanguagesupport\rtc_verilog_language_support\matlab;', ...
-     matlabroot,'\toolbox\matlab\rtc_addons\rtclanguagesupport\rtc_vhdl_language_support\matlab;', ...
-     matlabroot,'\toolbox\matlab\rtc_addons\rtclanguagesupport\rtc_xml_language_support\matlab;', ...
-     matlabroot,'\toolbox\simulink\blocks\sb2sl;', ...
-     matlabroot,'\toolbox\shared\sdi_matlabunit;', ...
-     matlabroot,'\toolbox\sequencediagram\sl\m;', ...
-     matlabroot,'\toolbox\sequencediagram\web\m;', ...
-     matlabroot,'\toolbox\serdes\serdes;', ...
-     matlabroot,'\toolbox\serdes\amicodegen;', ...
-     matlabroot,'\toolbox\serdes\amicodegen\registry;', ...
-     matlabroot,'\toolbox\serdes\helperfiles;', ...
-     matlabroot,'\toolbox\serdes\upgradeadvisor;', ...
-     matlabroot,'\toolbox\matlab\serialport;', ...
-     matlabroot,'\toolbox\stateflow\sf_req_analysis\mfiles;', ...
-     matlabroot,'\toolbox\shared\sharedgui;', ...
-     matlabroot,'\toolbox\shared\advisor;', ...
-     matlabroot,'\toolbox\shared\aeroblks;', ...
-     matlabroot,'\toolbox\shared\aeroblks\aeroblksutilities;', ...
-     matlabroot,'\toolbox\shared\aerospace\core_blocks;', ...
-     matlabroot,'\toolbox\shared\asam\cdfx;', ...
-     matlabroot,'\toolbox\shared\asam\mcd2mc\package;', ...
-     matlabroot,'\toolbox\shared\asam\mdf;', ...
-     matlabroot,'\toolbox\shared\asynciolib;', ...
-     matlabroot,'\toolbox\shared\audio\signallabeler;', ...
-     matlabroot,'\toolbox\shared\autonomous\autonomouslib;', ...
-     matlabroot,'\toolbox\shared\basemaps;', ...
-     matlabroot,'\toolbox\shared\bigdata;', ...
-     matlabroot,'\toolbox\shared\blelib;', ...
-     matlabroot,'\toolbox\shared\buildings;', ...
-     matlabroot,'\toolbox\shared\can;', ...
-     matlabroot,'\toolbox\shared\can\canblks;', ...
-     matlabroot,'\toolbox\shared\can\canmasks;', ...
-     matlabroot,'\toolbox\shared\can\canmex;', ...
-     matlabroot,'\toolbox\shared\cgir_fe;', ...
-     matlabroot,'\toolbox\shared\cgxe\cgxe;', ...
-     matlabroot,'\toolbox\shared\channel\terrain;', ...
-     matlabroot,'\toolbox\shared\cmlink\matlab;', ...
-     matlabroot,'\toolbox\shared\coder\coder;', ...
-     matlabroot,'\toolbox\shared\coder\coder\gpucoder;', ...
-     matlabroot,'\toolbox\shared\coder\reportinfo;', ...
-     matlabroot,'\toolbox\shared\codergui\codergui;', ...
-     matlabroot,'\toolbox\shared\coder\coder\lib;', ...
-     matlabroot,'\toolbox\shared\commhdl;', ...
-     matlabroot,'\toolbox\shared\comm_msblks_serdes\comm_msblks_serdes;', ...
-     matlabroot,'\toolbox\shared\comm_msblks_serdes\scopes;', ...
-     matlabroot,'\toolbox\shared\comm_msblks_serdes\utilities;', ...
-     matlabroot,'\toolbox\shared\channel;', ...
-     matlabroot,'\toolbox\shared\channel\raytracing;', ...
-     matlabroot,'\toolbox\shared\channel\rfprop;', ...
-     matlabroot,'\toolbox\shared\comm_sysmod;', ...
-     matlabroot,'\toolbox\shared\comm_sysmod\traffic;', ...
-     matlabroot,'\toolbox\shared\comm_sysmod\pcap;', ...
-     matlabroot,'\toolbox\shared\configset;', ...
-     matlabroot,'\toolbox\shared\configset_view\m;', ...
-     matlabroot,'\toolbox\shared\controllib\engine;', ...
-     matlabroot,'\toolbox\shared\controllib\engine\numerics;', ...
-     matlabroot,'\toolbox\shared\controllib\engine\options;', ...
-     matlabroot,'\toolbox\shared\controllib\engine\optim;', ...
-     matlabroot,'\toolbox\shared\controllib\engine\blocks;', ...
-     matlabroot,'\toolbox\shared\controllib\estimation;', ...
-     matlabroot,'\toolbox\shared\controllib\general;', ...
-     matlabroot,'\toolbox\shared\controllib\graphics;', ...
-     matlabroot,'\toolbox\shared\controllib\graphics\utils;', ...
-     matlabroot,'\toolbox\shared\controllib\graphics\plotoptions;', ...
-     matlabroot,'\toolbox\shared\controllib\requirements;', ...
-     matlabroot,'\toolbox\shared\coordinates;', ...
-     matlabroot,'\toolbox\shared\curvefitlib;', ...
-     matlabroot,'\toolbox\shared\cxxfe\parser_mi\parser_mi;', ...
-     matlabroot,'\toolbox\shared\dastudio;', ...
-     matlabroot,'\toolbox\shared\deviceplugindetection;', ...
-     matlabroot,'\toolbox\shared\dlcoder_base\dlcoder_base;', ...
-     matlabroot,'\toolbox\shared\dnnshared;', ...
-     matlabroot,'\toolbox\shared\drivingmaps;', ...
-     matlabroot,'\toolbox\shared\dspblks\dspblks;', ...
-     matlabroot,'\toolbox\shared\dspblks\dspmex;', ...
-     matlabroot,'\toolbox\shared\dsp\dialog;', ...
-     matlabroot,'\toolbox\shared\dsp\float2fixed;', ...
-     matlabroot,'\toolbox\shared\dsp\hdl;', ...
-     matlabroot,'\toolbox\shared\dsp\scopes;', ...
-     matlabroot,'\toolbox\shared\dsp\vision\matlab\utilities;', ...
-     matlabroot,'\toolbox\shared\dsp\vision\simulink\utilities;', ...
-     matlabroot,'\toolbox\shared\dsp\vision\matlab\utilities\mex;', ...
-     matlabroot,'\toolbox\shared\dsp\vision\simulink\utilities\mex;', ...
-     matlabroot,'\toolbox\shared\dsp\vision\matlab\utilities\init;', ...
-     matlabroot,'\toolbox\shared\dsp\vision\matlab\vision;', ...
-     matlabroot,'\toolbox\shared\dsp\vision\simulink\vision;', ...
-     matlabroot,'\toolbox\shared\dsp\webscopes\dspwebscopesutils;', ...
-     matlabroot,'\toolbox\shared\eda\board;', ...
-     matlabroot,'\toolbox\shared\eda\edagraph;', ...
-     matlabroot,'\toolbox\shared\eda\fil;', ...
-     matlabroot,'\toolbox\shared\eda\fil\filmapi;', ...
-     matlabroot,'\toolbox\shared\eda\fil\fildemos;', ...
-     matlabroot,'\toolbox\shared\eda\fpgaautomation;', ...
-     matlabroot,'\toolbox\shared\eda\fpgaautomation\obsolete;', ...
-     matlabroot,'\toolbox\shared\eda\fpgabase;', ...
-     matlabroot,'\toolbox\shared\eda\hdlparser;', ...
-     matlabroot,'\toolbox\shared\filterdesignlib;', ...
-     matlabroot,'\toolbox\shared\filterdesignlib\filterbuilder;', ...
-     matlabroot,'\toolbox\shared\fusion\utils;', ...
-     matlabroot,'\toolbox\shared\geodesy;', ...
-     matlabroot,'\toolbox\shared\globe;', ...
-     matlabroot,'\toolbox\shared\gps;', ...
-     matlabroot,'\toolbox\shared\gpu;', ...
-     matlabroot,'\toolbox\shared\hdlshared;', ...
-     matlabroot,'\toolbox\shared\hdlshared\hdlshared_gui;', ...
-     matlabroot,'\toolbox\shared\hdlshared\hdlshared_soc;', ...
-     matlabroot,'\toolbox\shared\hotpluglib;', ...
-     matlabroot,'\toolbox\shared\hwconnectinstaller;', ...
-     matlabroot,'\toolbox\shared\hwconnectinstaller\common;', ...
-     matlabroot,'\toolbox\shared\imageslib;', ...
-     matlabroot,'\toolbox\shared\imageio;', ...
-     matlabroot,'\toolbox\shared\imaqlib;', ...
-     matlabroot,'\toolbox\shared\io\general;', ...
-     matlabroot,'\toolbox\target\shared\ioplayback;', ...
-     matlabroot,'\toolbox\shared\lidar;', ...
-     matlabroot,'\toolbox\shared\lidarsim;', ...
-     matlabroot,'\toolbox\shared\lidarsim\lidarsim;', ...
-     matlabroot,'\toolbox\shared\mapgeodesy;', ...
-     matlabroot,'\toolbox\shared\maputils;', ...
-     matlabroot,'\toolbox\shared\matlab\testframework\baselines;', ...
-     matlabroot,'\toolbox\shared\matlab\testframework\baselines_sdi;', ...
-     matlabroot,'\toolbox\shared\measure;', ...
-     matlabroot,'\toolbox\shared\dsp\webscopes\mlarrayplot;', ...
-     matlabroot,'\toolbox\shared\mlarrow;', ...
-     matlabroot,'\toolbox\shared\mlearnlib;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\dom;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\dom\dom;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\dom\dom\help;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\fop;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\ppt;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\ppt\ppt;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\ppt\ppt\help;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\rpt;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\rpt\rpt;', ...
-     matlabroot,'\toolbox\shared\mlreportgen\utils;', ...
-     matlabroot,'\toolbox\shared\dsp\webscopes\mltimescope;', ...
-     matlabroot,'\toolbox\shared\motionmodel\motionmodellib;', ...
-     matlabroot,'\toolbox\shared\multibody\multibodylib;', ...
-     matlabroot,'\toolbox\shared\multimedia;', ...
-     matlabroot,'\toolbox\shared\multivercosim\m;', ...
-     matlabroot,'\toolbox\shared\nav_lidar\nav_lidar_lib;', ...
-     matlabroot,'\toolbox\shared\nav_rst\nav_rst_lib;', ...
-     matlabroot,'\toolbox\shared\nav_rst\nav_rst_simulink;', ...
-     matlabroot,'\toolbox\shared\nav_rst\nav_rst_simulink\blockicons;', ...
-     matlabroot,'\toolbox\shared\networklib;', ...
-     matlabroot,'\toolbox\shared\opcount;', ...
-     matlabroot,'\toolbox\shared\opcount\base;', ...
-     matlabroot,'\toolbox\shared\optimlib;', ...
-     matlabroot,'\toolbox\shared\pdelib;', ...
-     matlabroot,'\toolbox\shared\pegparserlib\pegparser;', ...
-     matlabroot,'\toolbox\shared\phasedfusion;', ...
-     matlabroot,'\toolbox\shared\planning;', ...
-     matlabroot,'\toolbox\shared\pointclouds;', ...
-     matlabroot,'\toolbox\shared\positioning\positioning;', ...
-     matlabroot,'\toolbox\shared\positioning\positioningdata;', ...
-     matlabroot,'\toolbox\shared\positioning\simulink;', ...
-     matlabroot,'\toolbox\shared\positioning\simulink\blockicons;', ...
-     matlabroot,'\toolbox\shared\radarfusion;', ...
-     matlabroot,'\toolbox\shared\reqmgt;', ...
-     matlabroot,'\toolbox\shared\reqmgt\mmutils;', ...
-     matlabroot,'\toolbox\shared\rfblks_ideal;', ...
-     matlabroot,'\toolbox\shared\rfblks_ideal\utilities;', ...
-     matlabroot,'\toolbox\shared\rffit;', ...
-     matlabroot,'\toolbox\shared\rflib;', ...
-     matlabroot,'\toolbox\shared\robotics\robotcore;', ...
-     matlabroot,'\toolbox\shared\robotics\robotcore\meshes;', ...
-     matlabroot,'\toolbox\shared\robotics\robotappscore;', ...
-     matlabroot,'\toolbox\shared\robotics\robotslcore;', ...
-     matlabroot,'\toolbox\shared\robotics\robotslcore\blockicons;', ...
-     matlabroot,'\toolbox\shared\robotics\robotutils;', ...
-     matlabroot,'\toolbox\shared\rotations\rotationslib;', ...
-     matlabroot,'\toolbox\shared\rptgen;', ...
-     matlabroot,'\toolbox\shared\sdi;', ...
-     matlabroot,'\toolbox\shared\sdi_visuals;', ...
-     matlabroot,'\toolbox\shared\sensorsim\gps;', ...
-     matlabroot,'\toolbox\shared\sensorsim\ins;', ...
-     matlabroot,'\toolbox\shared\sensorsim\trajectories\trajectories;', ...
-     matlabroot,'\toolbox\shared\seriallib;', ...
-     matlabroot,'\toolbox\shared\sfunctionbuilderjs\m;', ...
-     matlabroot,'\toolbox\shared\sigbldr;', ...
-     matlabroot,'\toolbox\shared\siglib;', ...
-     matlabroot,'\toolbox\shared\signalwavelet\signalwavelet;', ...
-     matlabroot,'\toolbox\shared\sim3d;', ...
-     matlabroot,'\toolbox\shared\sim3d\sim3d;', ...
-     matlabroot,'\toolbox\shared\sim3dblks\sim3dblks;', ...
-     matlabroot,'\toolbox\shared\simulinktest_matlabunit;', ...
-     matlabroot,'\toolbox\shared\system\simulink_block;', ...
-     matlabroot,'\toolbox\shared\simulink\sysarch\sysarch;', ...
-     matlabroot,'\toolbox\shared\dsp\webscopes\slarrayplot;', ...
-     matlabroot,'\toolbox\shared\slcc\slcc;', ...
-     matlabroot,'\toolbox\shared\slcc_cov\slcc_cov;', ...
-     matlabroot,'\toolbox\shared\slci\slci;', ...
-     matlabroot,'\toolbox\shared\slcontrollib;', ...
-     matlabroot,'\toolbox\shared\sl_coverage_configset;', ...
-     matlabroot,'\toolbox\shared\sldv;', ...
-     matlabroot,'\toolbox\shared\sldv_cc\sldv_cc;', ...
-     matlabroot,'\toolbox\shared\sl_multicore\dfs;', ...
-     matlabroot,'\toolbox\shared\sl_multicore\multicoredesigner;', ...
-     matlabroot,'\toolbox\shared\slreportgen\reportexplorer;', ...
-     matlabroot,'\toolbox\shared\slreportgen\rpt;', ...
-     matlabroot,'\toolbox\shared\slreportgen\rpt\rpt;', ...
-     matlabroot,'\toolbox\shared\slreportgen\utils;', ...
-     matlabroot,'\toolbox\shared\slreq;', ...
-     matlabroot,'\toolbox\shared\spcuilib\slscopes;', ...
-     matlabroot,'\toolbox\shared\slvnv;', ...
-     matlabroot,'\toolbox\shared\slwizard;', ...
-     matlabroot,'\toolbox\shared\sl_async_streaming;', ...
-     matlabroot,'\toolbox\shared\sl_web_widgets;', ...
-     matlabroot,'\toolbox\shared\spcuilib\applications;', ...
-     matlabroot,'\toolbox\shared\spreadsheet;', ...
-     matlabroot,'\toolbox\shared\statslib;', ...
-     matlabroot,'\toolbox\shared\statslib\sensitivity;', ...
-     matlabroot,'\toolbox\shared\supportpkgservices\legacysupportpkginfo;', ...
-     matlabroot,'\toolbox\shared\supportpkgservices\installservices;', ...
-     matlabroot,'\toolbox\shared\supportpkgservices\supportpackageroot;', ...
-     matlabroot,'\toolbox\shared\supportpkgservices\installedapi;', ...
-     matlabroot,'\toolbox\shared\supportsoftware\launcher;', ...
-     matlabroot,'\toolbox\shared\supportsoftware\services;', ...
-     matlabroot,'\toolbox\shared\supportsoftware\upgrade;', ...
-     matlabroot,'\toolbox\shared\surrogatelib;', ...
-     matlabroot,'\toolbox\shared\system\accelerator;', ...
-     matlabroot,'\toolbox\shared\system\coder;', ...
-     matlabroot,'\toolbox\shared\system\coreblocks;', ...
-     matlabroot,'\toolbox\shared\system\sfun;', ...
-     matlabroot,'\toolbox\shared\system\simulink;', ...
-     matlabroot,'\toolbox\shared\terrain;', ...
-     matlabroot,'\toolbox\shared\testconsole;', ...
-     matlabroot,'\toolbox\shared\testmeaslib\general;', ...
-     matlabroot,'\toolbox\shared\testmeaslib\graphics;', ...
-     matlabroot,'\toolbox\shared\testmeaslib\simulink;', ...
-     matlabroot,'\toolbox\shared\tlmgenerator\foundation;', ...
-     matlabroot,'\toolbox\shared\tlmgenerator\foundation\rtw;', ...
-     matlabroot,'\toolbox\shared\tracking\trackinglib;', ...
-     matlabroot,'\toolbox\shared\tracking\trackinglib\blocks;', ...
-     matlabroot,'\toolbox\shared\tracking\blks;', ...
-     matlabroot,'\toolbox\shared\tracking\fusionlib;', ...
-     matlabroot,'\toolbox\shared\transportclients;', ...
-     matlabroot,'\toolbox\shared\transportlib;', ...
-     matlabroot,'\toolbox\shared\vehicle_protocols\j1939blks;', ...
-     matlabroot,'\toolbox\shared\vehicle_protocols\j1939mex;', ...
-     matlabroot,'\toolbox\shared\virtualfileio;', ...
-     matlabroot,'\toolbox\shared\wireless;', ...
-     matlabroot,'\toolbox\shared\xcp;', ...
-     matlabroot,'\toolbox\shared\xcp\xcpblks;', ...
-     matlabroot,'\toolbox\shared\xcp\xcpmex;', ...
-     matlabroot,'\toolbox\shared\xcpcore\blocks;', ...
-     matlabroot,'\toolbox\signal\signal;', ...
-     matlabroot,'\toolbox\signal\sigtools;', ...
-     matlabroot,'\toolbox\signal\sptoolgui;', ...
-     matlabroot,'\toolbox\signal\sigdemos;', ...
-     matlabroot,'\toolbox\signal\sigappsshared;', ...
-     matlabroot,'\toolbox\signal\signalanalyzer;', ...
-     matlabroot,'\toolbox\signal\signallabeler;', ...
-     matlabroot,'\toolbox\simbio\simbio;', ...
-     matlabroot,'\toolbox\simbio\simbiodemos;', ...
-     matlabroot,'\toolbox\simevents\simevents;', ...
-     matlabroot,'\toolbox\simevents\simevents\icons;', ...
-     matlabroot,'\toolbox\simevents\examples;', ...
-     matlabroot,'\toolbox\slde\templates;', ...
-     matlabroot,'\toolbox\simrf\simrf;', ...
-     matlabroot,'\toolbox\simrf\simrfv2;', ...
-     matlabroot,'\toolbox\simrf\simrfv2masks;', ...
-     matlabroot,'\help\toolbox\simrf\examples;', ...
-     matlabroot,'\toolbox\simrf\simrf_top;', ...
-     matlabroot,'\toolbox\shared\simulink;', ...
-     matlabroot,'\toolbox\sl3d\sl3dext\sl3d;', ...
-     matlabroot,'\toolbox\sl3d\sl3d;', ...
-     matlabroot,'\toolbox\sl3d\sl3ddemos;', ...
-     matlabroot,'\toolbox\simulink\simulink\slblocksetsdk;', ...
-     matlabroot,'\toolbox\coder\foundation\passmanager;', ...
-     matlabroot,'\toolbox\slcheck;', ...
-     matlabroot,'\toolbox\shared\slcheck\check;', ...
-     matlabroot,'\toolbox\slcheck\slcheckdemos;', ...
-     matlabroot,'\toolbox\slcheck\slcheckdemos\slicerdemos;', ...
-     matlabroot,'\toolbox\simulink\slcheck_exclusioneditor;', ...
-     matlabroot,'\toolbox\slcheck\highintegrity;', ...
-     matlabroot,'\toolbox\slcheck\mametrics;', ...
-     matlabroot,'\toolbox\slcheck\slmetrics_mmt\ml;', ...
-     matlabroot,'\toolbox\shared\simulink\slcheck_services;', ...
-     matlabroot,'\toolbox\shared\slcheck\utils;', ...
-     matlabroot,'\toolbox\slci\slci;', ...
-     matlabroot,'\toolbox\slci\slci_toolstrip\m;', ...
-     matlabroot,'\toolbox\slci\slci_view\m;', ...
-     matlabroot,'\toolbox\slci\slcidemos;', ...
-     matlabroot,'\toolbox\slcontrol\slcontrol;', ...
-     matlabroot,'\toolbox\slcontrol\slctrlguis;', ...
-     matlabroot,'\toolbox\slcontrol\slctrlutil;', ...
-     matlabroot,'\toolbox\slcontrol\slctrlobsolete;', ...
-     matlabroot,'\toolbox\slcontrol\slctrldemos;', ...
-     matlabroot,'\help\toolbox\slcontrol\examples;', ...
-     matlabroot,'\toolbox\slcoverage;', ...
-     matlabroot,'\toolbox\slcoverage\sltoolstrip\m;', ...
-     matlabroot,'\toolbox\simulink\simulink_data_dictionary\sldd;', ...
-     matlabroot,'\toolbox\sldo\sldo;', ...
-     matlabroot,'\toolbox\sldo\sldoguis;', ...
-     matlabroot,'\toolbox\sldo\sloptim\sloptim;', ...
-     matlabroot,'\toolbox\sldo\sloptim\sloptguis;', ...
-     matlabroot,'\toolbox\sldo\sloptim\sloptobsolete;', ...
-     matlabroot,'\toolbox\sldo\slestim\slestguis;', ...
-     matlabroot,'\toolbox\sldo\slestim\slestim;', ...
-     matlabroot,'\toolbox\sldo\slestim\slestmex;', ...
-     matlabroot,'\toolbox\sldo\slestim\slestutil;', ...
-     matlabroot,'\toolbox\sldo\sldodemos;', ...
-     matlabroot,'\toolbox\sldo\sldodemos\optim;', ...
-     matlabroot,'\toolbox\sldo\sldodemos\estim;', ...
-     matlabroot,'\toolbox\sldo\sldodemos\estim\docexamples\adaptive;', ...
-     matlabroot,'\toolbox\sldo\sldodemos\estim\docexamples\lookuptable;', ...
-     matlabroot,'\help\toolbox\sldo\examples;', ...
-     matlabroot,'\toolbox\sldrt\coder;', ...
-     matlabroot,'\toolbox\sldrt\rtw;', ...
-     matlabroot,'\toolbox\sldrt\sldrt;', ...
-     matlabroot,'\toolbox\sldrt\sldrtexamples;', ...
-     matlabroot,'\toolbox\sldv\sldv;', ...
-     matlabroot,'\toolbox\sldv\sldvdemos;', ...
-     matlabroot,'\toolbox\simulink\slexportprevious;', ...
-     matlabroot,'\toolbox\hdlcoder\slhdltemplates;', ...
-     matlabroot,'\toolbox\simulink\slhistory;', ...
-     matlabroot,'\toolbox\simulink\simulink\slprofiler;', ...
-     matlabroot,'\toolbox\simulink\simulink\slproject\simulink;', ...
-     matlabroot,'\toolbox\simulink\simulink\slproject\examples;', ...
-     matlabroot,'\toolbox\simulink\simulink\slproject\templates;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\advisor;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\blocks;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\blocks\ip;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\blocks\obsolete;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\blocks\obsolete\xpcobsolete;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\blocks\obsolete\forwarding;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\coder;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\coder\rtw;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\coder\crl;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\coder\obsolete;', ...
-     matlabroot,'\toolbox\slrealtime\simulink\coder\obsolete\rtw;', ...
-     matlabroot,'\toolbox\slrealtime\examples;', ...
-     matlabroot,'\toolbox\slrealtime\slrealtime;', ...
-     matlabroot,'\toolbox\slrealtime\toolstrip\m;', ...
-     matlabroot,'\toolbox\slreportgen\rpt2api;', ...
-     matlabroot,'\toolbox\slreportgen\webview;', ...
-     matlabroot,'\toolbox\slrequirements\slrequirements;', ...
-     matlabroot,'\toolbox\slrequirements\slrequirementsdemos;', ...
-     matlabroot,'\toolbox\slvnv\rmidemos;', ...
-     matlabroot,'\toolbox\slsim\design;', ...
-     matlabroot,'\toolbox\sldv\slicer;', ...
-     matlabroot,'\toolbox\sldv\slicer\gui;', ...
-     matlabroot,'\toolbox\simulink\sltemplate;', ...
-     matlabroot,'\toolbox\simulink\sltemplate\toolstrip_plugin\m;', ...
-     matlabroot,'\toolbox\simulink\simulink\sltopo;', ...
-     matlabroot,'\toolbox\sltp\m;', ...
-     matlabroot,'\toolbox\slcheck\do178b;', ...
-     matlabroot,'\toolbox\slcheck\iec61508;', ...
-     matlabroot,'\toolbox\slcheck\styleguide;', ...
-     matlabroot,'\toolbox\shared\spcuilib\slwebscopes;', ...
-     matlabroot,'\toolbox\simulink\sl_async_streaming;', ...
-     matlabroot,'\toolbox\simulink\fixedandfloat;', ...
-     matlabroot,'\toolbox\simulink\fixedandfloat\obsolete;', ...
-     matlabroot,'\toolbox\simulink\sl_graphics_services\tools;', ...
-     matlabroot,'\toolbox\simulink\simulink\iodata\iomap;', ...
-     matlabroot,'\toolbox\simulink\simulink\iodata\iofile;', ...
-     matlabroot,'\toolbox\simulink\sta\sourceblocks;', ...
-     matlabroot,'\toolbox\simulink\simulink\iodata\ioformat;', ...
-     matlabroot,'\toolbox\shared\sl_messages;', ...
-     matlabroot,'\toolbox\slcheck\slmetrics\ml;', ...
-     matlabroot,'\toolbox\simulink\simulink\performance;', ...
-     matlabroot,'\toolbox\simulink\simulink\performance\performancea;', ...
-     matlabroot,'\toolbox\sl_pir_cap;', ...
-     matlabroot,'\toolbox\shared\slpir;', ...
-     matlabroot,'\toolbox\shared\dastudio\seqdiagram;', ...
-     matlabroot,'\toolbox\shared\diagnostic;', ...
-     matlabroot,'\toolbox\simulink\sl_solver_profiler;', ...
-     matlabroot,'\toolbox\simulink\sta\scenarioconnector;', ...
-     matlabroot,'\toolbox\simulink\sta\scenarioconnector\ui;', ...
-     matlabroot,'\toolbox\simulink\sta\scenarioconnector\ui\toolstrip\modelsection;', ...
-     matlabroot,'\toolbox\simulink\sta\scenarioconnector\ui\toolstrip\filesection;', ...
-     matlabroot,'\toolbox\simulink\sta\editor;', ...
-     matlabroot,'\toolbox\simulink\sta\editor\ui;', ...
-     matlabroot,'\toolbox\simulink\sta\ui;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\mapping;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\mapping\callbacks;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\mapping\util;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\toolstrip;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\toolstrip\open\streaming;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\toolstrip\help;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\toolstrip\open;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\toolstrip\session;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\toolstrip\report;', ...
-     matlabroot,'\toolbox\simulink\sta\ui\preferences\mapper;', ...
-     matlabroot,'\toolbox\simulink\sta\derivedsignals;', ...
-     matlabroot,'\toolbox\simulink\sta\sl_sta_editor_block;', ...
-     matlabroot,'\toolbox\simulink\sta\repository;', ...
-     matlabroot,'\toolbox\simulink\sta\repository\util;', ...
-     matlabroot,'\toolbox\simulink\sta\sl_sta_webscope;', ...
-     matlabroot,'\toolbox\simulink\ui\sl_studio\sl_studio;', ...
-     matlabroot,'\toolbox\simulink\sl_suggestions\m;', ...
-     matlabroot,'\toolbox\simulink\types;', ...
-     matlabroot,'\toolbox\shared\sl_units_mldatx;', ...
-     matlabroot,'\toolbox\simulink\simulink\upgradeadvisor;', ...
-     matlabroot,'\toolbox\simulink\sl_upgrade_engine;', ...
-     matlabroot,'\toolbox\sl_xls;', ...
-     matlabroot,'\toolbox\soc\complexity;', ...
-     matlabroot,'\toolbox\soc\complexity\cli;', ...
-     matlabroot,'\toolbox\soc\complexity\app;', ...
-     matlabroot,'\toolbox\soc\fpga;', ...
-     matlabroot,'\toolbox\soc\fpga\simulation;', ...
-     matlabroot,'\toolbox\soc\fpga\utilities;', ...
-     matlabroot,'\toolbox\soc\fpga\target;', ...
-     matlabroot,'\toolbox\soc\processor\profiler\kernelprofiler;', ...
-     matlabroot,'\toolbox\soc\processor;', ...
-     matlabroot,'\toolbox\soc\processor\utilities;', ...
-     matlabroot,'\toolbox\soc\processor\blocks;', ...
-     matlabroot,'\toolbox\soc\processor\blocks\common;', ...
-     matlabroot,'\toolbox\soc\processor\blocks\mex;', ...
-     matlabroot,'\toolbox\soc\processor\blocks\interconnect\mex;', ...
-     matlabroot,'\toolbox\soc\processor\blocks\scheduler;', ...
-     matlabroot,'\toolbox\soc\processor\customhardwaretarget;', ...
-     matlabroot,'\toolbox\soc\processor\customhardwaretarget\registry;', ...
-     matlabroot,'\toolbox\soc\processor\profiler;', ...
-     matlabroot,'\toolbox\soc\shared;', ...
-     matlabroot,'\toolbox\soc\shared\util;', ...
-     matlabroot,'\toolbox\soc\shared\blocks;', ...
-     matlabroot,'\toolbox\soc\shared\blocks\mex;', ...
-     matlabroot,'\toolbox\soc;', ...
-     matlabroot,'\toolbox\soc\hardwareboards\zynq;', ...
-     matlabroot,'\toolbox\soc\hardwareboards\alterasoc;', ...
-     matlabroot,'\toolbox\soc\hardwareboards\xilinxfpga;', ...
-     matlabroot,'\toolbox\soc\hardwareboards\rfsoc;', ...
-     matlabroot,'\toolbox\soc\hardwareboards\tic2000;', ...
-     matlabroot,'\toolbox\soc\hardwareboards\tic2000\registry;', ...
-     matlabroot,'\toolbox\soc\blocks;', ...
-     matlabroot,'\toolbox\soc\soc\memmap;', ...
-     matlabroot,'\toolbox\soc\soc\socbuilder;', ...
-     matlabroot,'\toolbox\soc\soc\periphconfigmap;', ...
-     matlabroot,'\toolbox\soc\socexamples;', ...
-     matlabroot,'\toolbox\soc\sltoolstrip\m;', ...
-     matlabroot,'\toolbox\soc\templates;', ...
-     matlabroot,'\toolbox\stats\bayesoptim;', ...
-     matlabroot,'\toolbox\stats\bigdata;', ...
-     matlabroot,'\toolbox\stats\classreg;', ...
-     matlabroot,'\toolbox\stats\clustering;', ...
-     matlabroot,'\toolbox\stats\featlearn;', ...
-     matlabroot,'\toolbox\stats\incremental;', ...
-     matlabroot,'\toolbox\stats\stats;', ...
-     matlabroot,'\toolbox\stats\semisupervised;', ...
-     matlabroot,'\toolbox\stats\blocks;', ...
-     matlabroot,'\toolbox\stats\blocks\classregblks;', ...
-     matlabroot,'\toolbox\stats\statsdemos;', ...
-     matlabroot,'\toolbox\stats\distributed;', ...
-     matlabroot,'\toolbox\stats\gpu;', ...
-     matlabroot,'\toolbox\stats\mlearnapp;', ...
-     matlabroot,'\toolbox\stm\stm;', ...
-     matlabroot,'\toolbox\matlab\storage\matlabdrive;', ...
-     matlabroot,'\toolbox\matlab\storage\mldrivedesktop;', ...
-     matlabroot,'\toolbox\symbolic\symbolic;', ...
-     matlabroot,'\toolbox\symbolic\graphics;', ...
-     matlabroot,'\toolbox\symbolic\validators;', ...
-     matlabroot,'\toolbox\symbolic\symbolicdemos;', ...
-     matlabroot,'\toolbox\symbolic\tasks;', ...
-     matlabroot,'\toolbox\sysarch\sysarch;', ...
-     matlabroot,'\toolbox\systemcomposer\allocation\allocation;', ...
-     matlabroot,'\toolbox\systemcomposer\analysis\analysis;', ...
-     matlabroot,'\toolbox\systemcomposer\classdiagram;', ...
-     matlabroot,'\toolbox\systemcomposer\examples;', ...
-     matlabroot,'\toolbox\systemcomposer\interfaces\interfaces;', ...
-     matlabroot,'\toolbox\systemcomposer\systemcomposer;', ...
-     matlabroot,'\toolbox\systemcomposer\matrix\matrix;', ...
-     matlabroot,'\toolbox\systemcomposer\sequencediagram\sequencediagram;', ...
-     matlabroot,'\toolbox\systemcomposer\templates;', ...
-     matlabroot,'\toolbox\matlab\system;', ...
-     matlabroot,'\toolbox\matlab\system\editor;', ...
-     matlabroot,'\toolbox\targetframework\matlab;', ...
-     matlabroot,'\toolbox\target\shared\armcortexabase;', ...
-     matlabroot,'\toolbox\target\shared\armcortexabase\utils;', ...
-     matlabroot,'\toolbox\target\codertarget;', ...
-     matlabroot,'\toolbox\target\codertarget\rtw;', ...
-     matlabroot,'\toolbox\target\codertarget\matlabcoder;', ...
-     matlabroot,'\toolbox\target\shared\targetauthoring;', ...
-     matlabroot,'\toolbox\target\codertarget\sltoolstrip\m;', ...
-     matlabroot,'\toolbox\target\extensions\processor\intelhost\tfl;', ...
-     matlabroot,'\toolbox\target;', ...
-     matlabroot,'\toolbox\target\foundation;', ...
-     matlabroot,'\toolbox\target\foundation\utils;', ...
-     matlabroot,'\toolbox\target\foundation\utils\resource_config;', ...
-     matlabroot,'\toolbox\target\foundation\blks;', ...
-     matlabroot,'\toolbox\target\foundation\blks\mex;', ...
-     matlabroot,'\toolbox\target\foundation\blks\masks;', ...
-     matlabroot,'\toolbox\target\extensions\processor\shared;', ...
-     matlabroot,'\toolbox\target\extensions\processor\shared\ti;', ...
-     matlabroot,'\toolbox\target\extensions\processor\shared\ti\mdlinfo;', ...
-     matlabroot,'\toolbox\target\extensions\processor\shared\ti\utils;', ...
-     matlabroot,'\toolbox\target\extensions\processor\shared\ti\blks;', ...
-     matlabroot,'\toolbox\target\extensions\processor\shared\ti\blks\mex;', ...
-     matlabroot,'\toolbox\target\extensions\processor\shared\ti\blks\masks;', ...
-     matlabroot,'\toolbox\target\extensions\processor\arm\tfl;', ...
-     matlabroot,'\toolbox\shared\etargets\etargets;', ...
-     matlabroot,'\toolbox\shared\etargets\etargets\demoutils;', ...
-     matlabroot,'\toolbox\target\extensions\processor\tic2000;', ...
-     matlabroot,'\toolbox\target\extensions\processor\tic2000\rtw;', ...
-     matlabroot,'\toolbox\target\extensions\processor\tic2000\utils;', ...
-     matlabroot,'\toolbox\target\extensions\operatingsystem\linux\blks;', ...
-     matlabroot,'\toolbox\target\extensions\operatingsystem\linux\blks\masks;', ...
-     matlabroot,'\toolbox\target\extensions\operatingsystem\linux\blks\mex;', ...
-     matlabroot,'\toolbox\target\extensions\operatingsystem\linux\src;', ...
-     matlabroot,'\toolbox\target\extensions\operatingsystem\windows\blks;', ...
-     matlabroot,'\toolbox\target\extensions\operatingsystem\windows\blks\masks;', ...
-     matlabroot,'\toolbox\target\extensions\operatingsystem\windows\blks\mex;', ...
-     matlabroot,'\toolbox\target\shared\linux_ioserver;', ...
-     matlabroot,'\toolbox\shared\template_core;', ...
-     matlabroot,'\toolbox\textanalytics\textanalytics;', ...
-     matlabroot,'\toolbox\matlab\timeseries;', ...
-     matlabroot,'\toolbox\matlab\toolboxmanagement\matlab_api;', ...
-     matlabroot,'\toolbox\matlab\toolbox_packaging;', ...
-     matlabroot,'\toolbox\matlab\toolstrip;', ...
-     matlabroot,'\toolbox\shared\toolstrip_coder_app\plugin\m;', ...
-     matlabroot,'\toolbox\trading\trading;', ...
-     matlabroot,'\toolbox\trading\tradingdemos;', ...
-     matlabroot,'\toolbox\uav\flightlogapp;', ...
-     matlabroot,'\toolbox\uav\uavmatlab;', ...
-     matlabroot,'\toolbox\uav\uavmatlab\mavlink\message_definitions;', ...
-     matlabroot,'\toolbox\uav\uavsimulink;', ...
-     matlabroot,'\toolbox\uav\uavsimulink\blockicons;', ...
-     matlabroot,'\toolbox\uav\uav;', ...
-     matlabroot,'\toolbox\matlab\uicomponents\uicomponents\plugin\appdesigner;', ...
-     matlabroot,'\toolbox\matlab\uicomponents\uicomponents;', ...
-     matlabroot,'\toolbox\matlab\uicomponents\uicomponents\graphics;', ...
-     matlabroot,'\toolbox\matlab\uicomponents\uicomponents\style;', ...
-     matlabroot,'\toolbox\matlab\uicomponents\uicomponents\databrowser;', ...
-     matlabroot,'\toolbox\matlab\uicomponents\uicomponents\uicontrol;', ...
-     matlabroot,'\toolbox\lte\umts;', ...
-     matlabroot,'\toolbox\shared\spcuilib\unifiedscopes;', ...
-     matlabroot,'\toolbox\matlab\updateinstaller;', ...
-     matlabroot,'\toolbox\hdlverifier\uvmgenerator;', ...
-     matlabroot,'\toolbox\hdlverifier\uvmgenerator\src;', ...
-     matlabroot,'\toolbox\vdynblks;', ...
-     matlabroot,'\toolbox\vdynblks\vdynblks;', ...
-     matlabroot,'\toolbox\vdynblks\vdynblksutilities;', ...
-     matlabroot,'\toolbox\vdynblks\vdyndemos;', ...
-     matlabroot,'\toolbox\shared\viewmodel\viewmodel;', ...
-     matlabroot,'\toolbox\vision\vision;', ...
-     matlabroot,'\toolbox\vision\visiondata;', ...
-     matlabroot,'\toolbox\vision\visionutilities;', ...
-     matlabroot,'\toolbox\vision\visionutilities\visioninit;', ...
-     matlabroot,'\toolbox\vision\visionutilities\visionmex;', ...
-     matlabroot,'\toolbox\visionhdl\visionhdl;', ...
-     matlabroot,'\toolbox\visionhdl\visionhdlutilities;', ...
-     matlabroot,'\toolbox\visionhdl\visionhdlutilities\visionhdlinit;', ...
-     matlabroot,'\toolbox\visionhdl\visionhdlexamples;', ...
-     matlabroot,'\toolbox\visionhdl\templates;', ...
-     matlabroot,'\toolbox\vision\visiondemos;', ...
-     matlabroot,'\help\toolbox\vision\examples;', ...
-     matlabroot,'\toolbox\vision\gpu;', ...
-     matlabroot,'\toolbox\simulink\vmgr\datamodel\web\ui;', ...
-     matlabroot,'\toolbox\simulink\vmgr\plugin\m;', ...
-     matlabroot,'\toolbox\vnt\vnt;', ...
-     matlabroot,'\toolbox\vnt\vntguis;', ...
-     matlabroot,'\toolbox\vnt\vntblks\vntblks;', ...
-     matlabroot,'\toolbox\vnt\vntblks\vntmasks;', ...
-     matlabroot,'\toolbox\vnt\vntblks\vntmex;', ...
-     matlabroot,'\toolbox\vnt\apps\provider;', ...
-     matlabroot,'\toolbox\wavelet\wavelet;', ...
-     matlabroot,'\toolbox\wavelet\wmultisig1d;', ...
-     matlabroot,'\toolbox\wavelet\compression;', ...
-     matlabroot,'\toolbox\wavelet\wavedemo;', ...
-     matlabroot,'\toolbox\matlab\webcam;', ...
-     matlabroot,'\toolbox\shared\spcuilib\webscopes;', ...
-     matlabroot,'\toolbox\whdl\whdl;', ...
-     matlabroot,'\toolbox\whdl\whdlutilities;', ...
-     matlabroot,'\toolbox\whdl\whdlutilities\whdlinit;', ...
-     matlabroot,'\toolbox\whdl\whdlexamples;', ...
-     matlabroot,'\toolbox\whdl\templates;', ...
-     matlabroot,'\toolbox\wlan\wlan;', ...
-     matlabroot,'\toolbox\matlab\external\interfaces\webservices\http;', ...
-     matlabroot,'\toolbox\matlab\external\interfaces\json;', ...
-     matlabroot,'\toolbox\matlab\external\interfaces\webservices\restful;', ...
-     matlabroot,'\toolbox\matlab\external\interfaces\webservices;', ...
-     matlabroot,'\toolbox\matlab\external\interfaces\webservices\wsdl;', ...
-%%% END ENTRIES %%%
-     ...
-];
-
-if startsWith(computer, 'PC') % ispc and pathsep not available
-    separator = ';';
-else
-    separator = ':';
-end
-
-p = [userpath separator getenv('MATLABPATH') separator p];
diff --git a/reports/oop_ciss_trEPR_stickSpectra.pdf b/reports/oop_ciss_trEPR_stickSpectra.pdf
new file mode 100644
index 0000000000000000000000000000000000000000..076350c7f8557f5537c17c1428b2e91bc4650025
Binary files /dev/null and b/reports/oop_ciss_trEPR_stickSpectra.pdf differ
diff --git a/reports/oop_ciss_trEPR_stickSpectra.synctex.gz b/reports/oop_ciss_trEPR_stickSpectra.synctex.gz
new file mode 100644
index 0000000000000000000000000000000000000000..3e691cb7e7c44e9e53cecd7d0f5ff3adc1d26505
Binary files /dev/null and b/reports/oop_ciss_trEPR_stickSpectra.synctex.gz differ
diff --git a/reports/oop_ciss_trEPR_stickSpectra.tex b/reports/oop_ciss_trEPR_stickSpectra.tex
new file mode 100644
index 0000000000000000000000000000000000000000..bd917db7884ff19280f596b4568286e9d0ffa9ab
--- /dev/null
+++ b/reports/oop_ciss_trEPR_stickSpectra.tex
@@ -0,0 +1,109 @@
+\documentclass[a4paper]{report}
+
+\usepackage{import}
+% Relative path to ~/files/soft/latex/latex-initial-commands-general.tex
+\import{../../../soft/latex/}{latex-initial-commands-general.tex}
+
+\usepackage[nottoc,notlot,notlof]{tocbibind}
+\usepackage{listings}
+
+\usepackage[style=numeric-comp, sorting=none, backend=biber]{biblatex}
+\addbibresource{reportOopCissCalc.bib}
+
+\title{OOP-ESEEM trEPR stick spectra}
+\author{Gianluca Marcozzi}
+\date{August 2024}
+
+\begin{document}
+	\maketitle
+	
+	\chapter{Calculations of powder trEPR spectrum}
+	\section{Parameters}
+	We try to simulate the powder trEPR spectrum of PSI. The used parameters are:\\
+	\begin{itemize}
+		\item g1 = [2.0030, 2.0026, 2.0023], g2 = [2.0062, 2.0051, 2.0022] for P700+ and A1- respectively;
+		\item Euler angles [-10, -128, -83] to transform from the reference frame of P700+ to the one of A1-;
+		\item dipolar interaction and exchange coupling dip = -0.177 mT and J = 0.001 mT (following the spin Hamiltonian convention used by Zech);
+		\item direction of the spin-spin interaction corresponding to the negative x-axis of the A1- frame of reference (hence Euler angles [0, 90, 0] to go from the dipolar frame of reference to the A1- frame of reference).
+	\end{itemize}
+
+	\section{Transition frequencies and intensities}
+	To calculate the powder average, we keep our frame fixed with the frame of A1- and calculate the trEPR stick spectra for different orientations of the external magnetic field.\\
+	As explained in Zech's thesis \cite{zechPulsedTransientElectron1998} chapter 4, the stick spectrum at a given orientation of the magnetic field is going to be similar to what shown in Fig. \ref{fig:stickSpectrum_zechThesis}. The position of the resonances is given by the values of J, dip and:
+	\begin{equation}
+		\omega_0 = \frac{ \mu_B B_0}{h}\frac{g1 - g2}{2}
+	\end{equation}
+	and:
+	\begin{equation}
+		\Omega = \sqrt{\Delta\omega^2 + (J + d/2)^2},
+	\end{equation}
+	where:
+	\begin{equation}
+	\Delta\omega = \frac{ \mu_B B_0}{h}\frac{g1 - g2}{2}.
+	\end{equation}
+	The absolute value of the intensity is the same for all the transitions at a given orientation. In particular:
+	\begin{equation}
+	I_{12} = -I_{34} = I_{13} = -I_{24} \propto \frac{\Delta\omega^2}{\Omega^2} = \sin^2(2\alpha),
+	\end{equation}
+	where $\alpha$ is the mixing angle used in Zech's thesis, defined as:
+	\begin{equation}
+		\begin{aligned}
+			\sin(2\alpha) = \frac{\Delta\omega}{\Omega}, &
+			\cos(2\alpha) = \frac{J + d/2}{\Omega}, &
+			\tan(2\alpha) = \frac{\Delta\omega}{J + d/2}.\\
+		\end{aligned}
+	\end{equation}
+	Note that $|\alpha| \rightarrow \pi/4$ for weakly interacting spin pair while $\alpha \rightarrow 0$ for strongly interacting spin pair.\\
+	\begin{figure}
+		\centering
+		\includegraphics[width=\textwidth]{../images/stickSpectrum_zechThesis}
+		\caption{Stick spectrum for an orientation such that $\text{d} = \text{dip} \cdot (\cos(\theta_D) - 1/3) < 0$. Taken from \cite{zechPulsedTransientElectron1998}, Fig 4.2.}
+		\label{fig:stickSpectrum_zechThesis}
+	\end{figure}
+
+	\section{Computational steps}
+	\begin{enumerate}
+		\item Calculate $d$ and effective g-values for each orientation in order to calculate $\omega_0$, $\Delta\omega$ and $\Omega$
+		\item Find the transition frequencies and intensities
+		\item Apply a line broadening to the stick spectrum
+		\item Average over all orientations
+	\end{enumerate}
+
+	\subsection{Calculate orientation-dependent parameters}
+	We define a grid of angles $\theta$ and $\phi$. These correspond to the polar and azimuthal angles of the external magnetic field with respect to the frame of reference of A1- (which we keep fixed).\\
+	An example of the code where a step of 3 degree is used both for $\theta$ and for $\phi$:
+		\begin{lstlisting}[language=Octave]
+% Theta and phi grid
+thetas = (0:3:180)*pi/180;
+nTheta = numel(thetas);
+phis = (0:3:360)*pi/180;
+nPhi = numel(phis);
+		\end{lstlisting}
+	In this case the array thetas will be thetas = [0, 3, 6, ..., 180]*pi/180 and the number of angles will be nTheta = 61.\\
+	From here we can calculate the effective g-values at each orientations. First we calculate the versor $n$ indicating the direction of $B_0$:
+		\begin{lstlisting}[language=Octave]
+% Direction of B0
+clear('nVers')
+nVers(1, :, :) = sin(thetas')*cos(phis);
+nVers(2, :, :) = sin(thetas')*sin(phis);
+nVers(3, :, :) = cos(thetas')*ones(1, nPhi);
+		\end{lstlisting}
+	The matrix nVers will be a 3D matrix of dimensions 3 x nTheta x nPhi. For example, for the 61st value of the first dimension ($\theta = 180$ degrees) and the first value of the second dimension ($\phi = 0$ degrees), we will obtain nVers(:, 61, 1) = [0, 0, -1], as expected.\\
+	Next step: calculate g2, that is the effective g-value of A1-. Since the g2 tensor is diagonal in this reference frame, for each orientation it will be:
+	\begin{equation}
+		g\textsubscript{eff} = \sqrt{(g_{xx}\cdot n_x)^2 + (g_{yy}\cdot n_y)^2 + (g_{zz}\cdot n_z)^2}.
+	\end{equation}
+	We basically want to multiply element-wise g2 by the value of nVers for each orientation and then take the square root of the sum of the squares of the projections. The code looks like:
+			\begin{lstlisting}[language=Octave]
+% Effective g-values
+g2 = squeeze(sqrt( sum( (Sys.g(2, :)'.*nVers).^2)));
+			\end{lstlisting}
+	First, the element-wise multiplication is carried out: Sys.g(2, :)' is the column vector 3 x 1 of [$g_{xx}, g_{yy}, g_{zz}$]. The operator .* does the element-wise multiplication at each fixed $\theta$ and $\phi$ value. As a consequence, the result of Sys.g(2, :)'.*nVers is still a 3 x nTheta x nPhi matrix. Afterwards these values are squared (also element wise), then they are summed along the first dimension and then the square root is calculated. At this point the result is a 1 x nTheta x nPhi matrix. The function squeeze() makes it a nTheta x nPhi matrix corresponding to the effective g-values for each orientation.\\
+	For the P700+ radical the process to calculate the effective g-values is the same, but we first need to transform the g-tensor to the frame of A1-. The code is:
+			\begin{lstlisting}[language=Octave]	
+g1TensorInFrame2 = erot(eAngles)'*diag(Sys.g(1, :))*erot(eAngles);
+g1 = squeeze(sqrt( sum( (pagemtimes(g1TensorInFrame2, nVers)).^2)));
+			\end{lstlisting}
+	Here erot(eAngles) is the rotation matrix with Euler angles [-10, -128, -83]. It is applied transposed on the left (' sign) and not transposed on the right side of the diagonal matrix (diag(Sys.g(1, :))). Afterwards we calculate the effective g-value multiplying the g-tensor by the nVers for each orientation. This is done by the function pagemtimes(), that enables multiplications of 3 x 3 matrices by 3 x 1 vectors for each value of $\theta$ and $\phi$. The rest is analogous to the A1- case.\\
+	\printbibliography
+\end{document}
\ No newline at end of file
diff --git a/zech_psiOopEseem_powderAverage_inhBroadening.asv b/zech_psiOopEseem_powderAverage_inhBroadening.asv
deleted file mode 100755
index 798c79a92a6fe709ccabf424c29a6cbe2deda2fa..0000000000000000000000000000000000000000
--- a/zech_psiOopEseem_powderAverage_inhBroadening.asv
+++ /dev/null
@@ -1,685 +0,0 @@
-%
-clearvars
-
-% Import
-% cd('/net/storage/gianlum33/projects/oop_ciss_calculations/')
-expName = 'data_extracted/zech_p46_oopEseem_expData.csv';
-fitName = 'data_extracted/zech_p46_oopEseem_fit.csv';
-
-importedData = readtable(expName);
-x = importedData{:, 1}*pi/180;
-y = importedData{:, 2};
-importedData = readtable(fitName);
-xx = importedData{:, 1}*pi/180;
-yy = importedData{:, 2};
-
-crystalEseem = @(p, beta) -( ...
-    0.5*sin(2*beta) * sin(2*p)^4 + ...
-    sin(beta) * cos(2*p)^2 * sin(2*p)^2);  % p = alpha
-
-p0Z = 31.5*pi/180;
-p0Timmel = 41*pi/180;
-initFit = rescaledata(crystalEseem(p0Z, xx), 'maxabs');
-expectFit = rescaledata(crystalEseem(p0Timmel, xx), 'maxabs');
-
-crystalEseem = @(p, beta) -(...
-    1/2 * sin(2*beta) .* cos(p).^4 + ...
-    1/4 * sin(beta) .* sin(2*p).^2);  % p = 2alpha
-
-p0B = pi/2 - 2*p0Z;  % xi_Bittl = pi/2 - 2*alpha_Zech
-initFit2 = rescaledata(crystalEseem(p0B, xx), 'maxabs');
-
-clf
-plot(x*180/pi, rescaledata(y, 'maxabs'), 'o-')
-hold on
-plot(xx*180/pi, rescaledata(yy, 'maxabs'))
-plot(xx*180/pi, initFit)
-plot(xx*180/pi, initFit2)
-plot(xx*180/pi, expectFit)
-% esfit()
-
-%% Dipolar interaction matrix, g1 and g2
-
-% Dipolar interaction, p = [dip, theta, phi]
-dipFunc = @(dip, theta, phi) dip*((sin(theta)*cos(phi)).^2 - 1/3);
-
-% Mixing angle, p = [dd, JJ, B0, g1, g2] in [MHz, MHz, T, adim, adim]
-xiFunc = @(dd, JJ, B0, g1, g2) atan( (dd + JJ).*1e6 .* ...
-    planck./(2*pi*(bmagn*B0)) ./ (g1 - g2) );
-
-% Parameters of the system
-% Relative orientation of g_P700+ to g_A1-
-eulerAnglesZech = [81, 126, 182]*pi/180;  % Zech, 'A structural model ...'
-% Same as used by Easyspin
-% eulerAnglesZech1to2 = [-182, -126, -81]*pi/180;  % Zech, 'A structural model ...'
-
-% Taken from Easyspin example
-Sys.S = [1/2 1/2];
-Sys.g = [2.0030 2.0026 2.0023; ... % P700+
-         2.0062 2.0051 2.0022];    % A1-
-Sys.gFrame = [-10 -128 -83; ...
-                0    0   0]*pi/180;
-Sys.eeFrame = [0 90 0]*pi/180;  % zD direction is along -x of A1-
-eulerAnglesEasyspin = Sys.gFrame(1, :);
-% Sys.J = -unitconvert(1e-3,'mT->MHz'); % MHz
-% Sys.dip = unitconvert(+0.177,'mT->MHz'); % MHz
-
-dip = unitconvert(0.177,'mT->MHz');
-JJ = unitconvert(-1e-3,'mT->MHz');
-mwFreq = 9.7e9;  % Hz
-B0 = 0.3459;  % T, static magnetic field (max of trEPR spectrum)
-% B0 = 0.3461;
-tau = 0.;  % us
-
-% Assume finite bandwidth of the excitation pulse
-pulseBw = 0.5e-3;  % T
-gPulseBw = planck*mwFreq/bmagn*(pulseBw/B0/B0);
-gPulsePosition = planck*mwFreq/bmagn/B0;
-excitRange = [-1/2, +1/2]*gPulseBw + gPulsePosition;
-
-% Theta and phi grid
-thetas = (0:0.5:180)*pi/180;
-nTheta = numel(thetas);
-phis = (0:0.5:360)*pi/180;
-nPhi = numel(phis);
-
-tic
-
-clear('dd', 'nVers', 'nVersInFrame1', 'g1', 'g2', 'xiNoLw', 'xiNoLw3D', ...
-    'signalNoLw', 'signalPowderNoLw')
-
-dd = dipFunc(dip, thetas', phis);
-% B0 direction in frame 2
-nVers(1, :, :) = sin(thetas')*cos(phis);
-nVers(2, :, :) = sin(thetas')*sin(phis);
-nVers(3, :, :) = cos(thetas')*ones(1, nPhi);
-g2 = squeeze(sqrt( sum( (Sys.g(2, :)'.*nVers).^2)));
-% B0 direction in frame 1
-nVersInFrame1 = pagemtimes(erot(eulerAnglesZech), nVers);
-g1 = squeeze(sqrt( sum( (Sys.g(1, :)'.*nVersInFrame1).^2)));
-
-% Mixing angles
-xiNoLw = xiFunc(dd, JJ, B0, g1, g2);
-% Signal
-xiNoLw3D(1, :, :) = xiNoLw;
-signalNoLw = crystalEseem(xiNoLw3D, xx);
-% Average over all the solid angles with proper normalization
-xiMeanNoLw = sum(sin(thetas').*abs(xiNoLw), 'all')/ ...
-    sum(sin(thetas')*ones(1, nPhi), 'all');
-signalNoLw = sin(thetas).*signalNoLw;
-% Temporal prefactor sin(2*(dd - JJ)*tau)
-if tau ~= 0
-    timePrefac = sin(2*(dd - JJ)*tau);
-else
-    timePrefac = ones(nTheta, nPhi);
-end
-signalNoLw = permute(signalNoLw, [2, 3, 1]);
-signalNoLw = signalNoLw.*timePrefac;
-signalNoLw = permute(signalNoLw, [3, 1, 2]);
-% Sum every angular contribution to the signal
-signalPowderNoLw = sum(squeeze(sum(signalNoLw, 3)), 2);
-    
-toc
-        
-%%
-
-% Fit to determine the best mixing angle if it were a crystal
-fitModel = @(p) p(1)*crystalEseem(p(2), xx);
-p0 = [2, 6.9*pi/180];
-vary = [2, 40*pi/180];
-FitOpt.x = xx;
-
-ydata = rescaledata(signalPowderNoLw, 'maxabs');
-Fit = esfit(ydata, fitModel, p0, vary, FitOpt);
-
-clf
-plot(xx, ydata, xx, Fit.fit);
-yline(0, '--')
-yyaxis right
-plot(xx, Fit.residuals)
-yline(0, '--')
-
-Fit.pfit(2)*180/pi  % Best fit crystal mixing angle
-
-%{
-%%
-
-
-figure(6)
-mySignal = rescaledata(signalPowderNoLw, 'maxabs');
-testManualFit = rescaledata(crystalEseem(6.18*pi/180, xx), 'maxabs');
-crystalMean = rescaledata(crystalEseem(xiNoLwMean, xx), 'maxabs');
-
-clf
-% tL = tiledlayout(2, 1, 'TileSpacing', 'compact', 'Padding', 'Compact');
-% nexttile
-plot(x*180/pi, rescaledata(y, 'maxabs'), 'o-', 'DisplayName', 'Zech exp. data')
-hold on
-plot(xx*180/pi, rescaledata(yy, 'maxabs'), 'DisplayName', 'Zech Fit')
-% plot(xx*180/pi, initFit)
-% plot(xx*180/pi, initFit2)
-plot(xx*180/pi, mySignal, 'DisplayName', 'Gianluca powder')
-plot(xx*180/pi, expectFit, 'k', 'DisplayName', '8 degrees')
-plot(xx*180/pi, testManualFit, 'r--', 'DisplayName', '6.18 deg test')
-plot(xx*180/pi, crystalMean, 'DisplayName', 'X-tal of avg xi (4deg)')
-xlim(setaxlim(xx*180/pi, 1))
-
-% nexttile
-% plot(xx*180/pi, mySignal - expectFit)
-legend('Location', 'northwest')
-labelaxesfig(gca, 'Flip angle beta', 'ESEEM intensity')
-
-% [temp01, temp1] = min(abs(expectFit(5:end - 1)));
-% temp1 = 4 + temp1;
-% xx(temp1)*180/pi
-% mySignal(temp1)
-%%
-
-% TODO maybe set same colorbar extremes for both
-figure(1)
-clf
-tL = tiledlayout(1, 2);
-nexttile
-% imagesc(phis, thetas, g1)
-imagesc(g1)
-colorbar
-title('g1')
-nexttile
-% imagesc(phis, thetas, g2)
-imagesc(g2)
-colorbar
-labelaxesfig(tL, 'Phi', 'Theta')
-title('g2')
-
-figure(2)
-clf
-% imagesc(dip*(valueOfCosThetaD.^2 - 1/3))
-% imagesc(thetas, phis, dd)
-% imagesc(phis, thetas, dd)
-imagesc(dd)
-labelaxesfig(gca, 'Phi', 'Theta')
-% imagesc(thetas, phis, xiNoLw)
-cbar = colorbar;
-% set(cbar, 'YDir', 'reverse');
-title('Dipolar interaction dd')
-
-
-figure(3)
-clf
-% imagesc(phis, thetas, g1 - g2)
-imagesc(g1 - g2)
-labelaxesfig(gca, 'Phi', 'Theta')
-cbar = colorbar;
-title('g1 minus g2')
-
-figure(4)
-clf
-% imagesc(dip*(valueOfCosThetaD.^2 - 1/3))
-% imagesc(phis, thetas, xiNoLw)
-imagesc(xiNoLw)
-cbar = colorbar;
-labelaxesfig(gca, 'Phi', 'Theta')
-% set(cbar, 'YDir', 'reverse');
-title('xiNoLw')
-
-%
-figure(5)
-clf
-plot(xx, signalNoLw_{22, 200}, 'DisplayName', string(xiNoLw(22, 200)*180/pi) + " deg")
-hold on
-plot(xx, signalNoLw_{45, 100}, 'DisplayName', string(xiNoLw(45, 100)*180/pi) + " deg")
-plot(xx, signalNoLw_{46, 200}, 'DisplayName', string(xiNoLw(46, 200)*180/pi) + " deg")
-plot(xx, signalNoLw_{43, 200}, 'DisplayName', string(xiNoLw(43, 200)*180/pi) + " deg")
-plot(xx, signalNoLw_{335, 540}, 'DisplayName', string(xiNoLw(335, 540)*180/pi) + " deg")
-legend()
-
-%}
-%% Optimized for loop
-
-% Inhomogenous line broadening due to hfi (isotropic)
-% Prisner et al., Time-resolved W-band..., 1995
-lw1 = 15e6;  % Hz
-lw2 = 15e6;  % Hz
-% The g-factor linewidth
-glw1 = planck/bmagn/B0*lw1;
-glw2 = planck/bmagn/B0*lw2;
-% Spacing between g-values
-dgax = 5e-5;
-dgaxInterp = 1e-7;
-
-signal = zeros(numel(xx), nTheta, nPhi);
-xi = zeros(nTheta, nPhi);
-
-computTimes = zeros(nTheta, 1);
-
-clear('xiPhi_', 'signalPhi_')
-tic
-for ith = 1:nTheta
-    tic
-    % Update waitbar and message
-    if ~exist('wbarTh', 'var')
-        wbarTh = waitbar(0, '1', 'Name', 'Theta');
-    end
-    waitbar(ith/nTheta, wbarTh, sprintf('%d out of %d', ith, nTheta))
-
-    theta_ = thetas(ith);
-    % theta_ = theta_/multTheta;
-    % theta_ = theta_ * 10;
-    
-    signalPhi_ = zeros(numel(xx), nPhi);
-    xiPhi_ = zeros(1, nPhi);
-    ddPhi_ = dd(ith, :);
-    g1Phi_ = g1(ith, :);
-    g2Phi_ = g2(ith, :);
-    parfor iph = 1:nPhi
-        phi_ = phis(iph);
-        
-%         Finite pulse bandwidth: no signal from spins outside excitRange
-        %{
-        if g1(ith, iph) < excitRange(1) || ...
-            g1(ith, iph) > excitRange(2) || ... 
-            g2(ith, iph) < excitRange(1) || ...
-            g2(ith, iph) > excitRange(2)
-            continue
-        end
-        %}
-        
-        % Consider inhomogenous broadening
-        % Create g-axis in order to 'sample' the inh. broadened g-values
-        [gax, gInh1, gInh2] = ...
-            creategaxis(g1Phi_(iph), g2Phi_(iph), glw1, glw2, dgax);
-        deltags = gax - gax(1);
-        % "Probability matrix" of a certain spin interacting with another
-        gaussianFactors = gInh1'*gInh2;
-        
-        % Calculate inh signal multiplicity using the fact that the signal
-        % is symmetric for xi -> -xi (hence sum the values of the
-        % non-central (meaning g1 - g2 != 0) multiplicity values)
-        xiMultiplicity = sum(spdiags(gaussianFactors), 1);
-        xiMultiplicity = xiMultiplicity(end/2 + 0.5:end) + ...
-            xiMultiplicity(end/2 + 0.5:-1:1);
-%         xiMultiplicity(1) = xiMultiplicity(1)/2;
-        
-        % Interpolate
-        [gaxInterp, ~, ~] = ...
-            creategaxis(g1Phi_(iph), g2Phi_(iph), glw1, glw2, dgaxInterp);
-        deltagsInterp = gaxInterp - gaxInterp(1);
-%         xiMultiplicity(1) = xiMultiplicity(1)*2;
-        xiMultiplicityInterp = ...
-            interp1(deltags, xiMultiplicity, deltagsInterp, ...
-            'linear', 'extrap');
-        % xiMultiplicity2(1) = 1/2*xiMultiplicity2(1);
-        
-        % Mixing angles
-        xi_ = atan( (ddPhi_(iph) + 2*JJ)*1e6 * ...
-                        planck/(2*pi*(bmagn*B0)) ./ deltagsInterp );
-        % Average over inh. broadening
-        xiPhi_(iph) = sum(abs(xi_).*xiMultiplicityInterp)/...
-            sum(xiMultiplicityInterp);
-        % Signal
-        signalInh = crystalEseem(xi_, xx);
-        % Average over inh. broadening
-        signalPhi_(:, iph) = sum(signalInh.*xiMultiplicityInterp, 2)/ ...
-            sum(xiMultiplicityInterp);
-        
-        
-%         ngaxLarge = numel(gaxLarge);
-%         ngax = numel(gaussianFactors(1, :));
-        
-%         gaxIdxs = round(ngaxLarge/2 - ngax/2):round(ngaxLarge/2 + ngax/2);
-%         gax = gaxLarge(gaxIdxs);
-%         gInh1 = gInh1Large(gaxIdxs);
-%         gInh2 = gInh2Large(gaxIdxs);
-%         xi_ = atan( (ddPhi_(iph) + 2*JJ)*1e6 * ...
-%             planck/(2*pi*(bmagn*B0)) ./ deltags );  
-        
-                
-        
-    end
-    % Store
-    signal(:, ith, :) = signalPhi_;
-    xi(ith, :) = xiPhi_;
-    computTimes(ith) = toc;
-end
-toc
-
-% Average over solid angle
-xiMean = sum(sin(thetas').*abs(xi), 'all')/ ...
-    sum(sin(thetas')*ones(1, nPhi), 'all');
-signalPowder = sum(squeeze(sum(sin(thetas).*signal, 3)), 2)/ ...
-    sum(sin(thetas')*ones(1, nPhi), 'all');
-
-save('powderAverage_inhBroadening_EasyspinAngles_20240812.mat', ...
-    'xi', 'signal', 'xiMean', 'signalPowder')
-
-delete(wbarTh)
-clear('wbarTh')
-
-% clf
-% plot(xx, signal_{ith, iph})
-% hold on
-% plot(xx, signalNoLw_{ith, iph})
-
-% max(signal_{ith, iph})
-%%
-ith = 342;
-iph = 357;
-    signalPhi_ = zeros(numel(xx), nPhi);
-    xiPhi_ = zeros(1, nPhi);
-    ddPhi_ = dd(ith, :);
-    g1Phi_ = g1(ith, :);
-    g2Phi_ = g2(ith, :);
-        [gax, gInh1, gInh2] = ...
-            creategaxis(g1Phi_(iph), g2Phi_(iph), glw1, glw2, dgax);
-        deltags = gax - gax(1);
-        % "Probability matrix" of a certain spin interacting with another
-        gaussianFactors = gInh1'*gInh2;
-        
-        % Calculate inh signal multiplicity using the fact that the signal
-        % is symmetric for xi -> -xi (hence sum the values of the
-        % non-central (meaning g1 - g2 != 0) multiplicity values)
-        xiMultiplicity = sum(spdiags(gaussianFactors), 1);
-        xiMultiplicity = xiMultiplicity(end/2 + 0.5:end) + ...
-            xiMultiplicity(end/2 + 0.5:-1:1);
-%         xiMultiplicity(1) = xiMultiplicity(1)/2;
-        
-        % Interpolate
-        [gaxInterp, ~, ~] = ...
-            creategaxis(g1Phi_(iph), g2Phi_(iph), glw1, glw2, dgaxInterp);
-        deltagsInterp = gaxInterp - gaxInterp(1);
-%         xiMultiplicity(1) = xiMultiplicity(1)*2;
-        xiMultiplicityInterp = ...
-            interp1(deltags, xiMultiplicity, deltagsInterp, ...
-            'linear', 'extrap');
-        % xiMultiplicity2(1) = 1/2*xiMultiplicity2(1);
-        
-        % Mixing angles
-        xi_ = atan( (ddPhi_(iph) + 2*JJ)*1e6 * ...
-                        planck/(2*pi*(bmagn*B0)) ./ deltagsInterp );
-        % Average over inh. broadening
-        xiPhi_(iph) = sum(abs(xi_).*xiMultiplicityInterp)/...
-            sum(xiMultiplicityInterp);
-        xiPhi_(iph)*180/pi
-        % Signal
-        signalInh = crystalEseem(xi_, xx);
-        % Average over inh. broadening
-        signalPhi_(:, iph) = sum(signalInh.*xiMultiplicityInterp, 2)/ ...
-            sum(xiMultiplicityInterp);         
-
-plot(deltags, gInh1, 'o-', deltags, gInh2, 'o-')
-plot(deltags, xiMultiplicity, 'o', deltagsInterp, xiMultiplicityInterp)
-yyaxis right
-plot(deltagsInterp, xi_, 'o')
-
-%%
-%{
-%% Test
-
-% tempInhMultiplicity = sum(spdiags(gaussianFactors), 1);
-% InhMultiplicity = aa1(end/2 + 0.5:end) + aa1(end/2 + 0.5:-1:1);
-clf
-ngax = numel(gax);
-plot(1:2*ngax - 1, xiMultiplicity, 1:ngax, xiMultiplicity)
-hold on
-plot(1:ngax, gInh1, 1:ngax, gInh2)
-plot(1:2*ngax - 1, xiComplete_*1e-4)
-
-%% Test
-
-deltagDistr = linspace(0, 1e-4, 2*ngax - 1);
-xiDistr = atan( (dd(30, 70) + 2*JJ)*1e6 * ...
-        planck/(2*pi*(bmagn*B0)) ./ deltagDistr );
-mean(xiDistr)*180/pi
-atan( (dd(30, 70) + 2*JJ)*1e6 * ...
-        planck/(2*pi*(bmagn*B0)) ./ mean(deltagDistr))*180/pi
-    
-%% Test
-
-ith = 30;
-iph = 400;
-
-gax = creategaxis(g1(ith, iph), g2(ith, iph), glw1, glw2, dgax);
-ngax = numel(gax);
-% Inhomogeneously broadened gaussian distributions
-gInh1 = gaussian(gax, g1(ith, iph), glw1);
-gInh2 = gaussian(gax, g2(ith, iph), glw2);
-% Normalization (?)
-gInh1 = gInh1/sum(gInh1);
-gInh2 = gInh2/sum(gInh2);
-
-diff = zeros(ngax, ngax);
-for i1 = 1:ngax
-    for i2 = 1:ngax
-        diff(i1, i2) = gInh1(i1) - gInh2(i2);
-    end
-end
-
-g1(ith, iph) - g2(ith, iph)
-mean(abs(diff(:)))
-
-
-clf
-imagesc(diff)
-colorbar
-% clf
-% plot(gax, gInh1, gax, gInh2)
-% 
-% nStep = round(2*max(diff(:))/dgax);
-% diffDistr = zeros(nStep, 1);
-% for i1 = 1:ngax
-%     for i2 = 1:ngax
-%         aa = round(diff(i1, i2)/dgax);
-%     end
-% end
-
-%%
-
-% size(crystalEseem(xi_(1:10)', xx))
-
-%% Some plots
-
-ith = 1;
-iph = 1;
-fig = figure(6);
-tiledlayout(2, 2, 'TileSpacing', 'compact', 'Padding', 'tight')
-nexttile
-%contour(xi{ith, iph})
-colorbar
-
-nexttile
-% plot(1:numel(xi{ith, iph}(:, 100)), xi{ith, iph}(:, 100))
-% textStr = sprintf('Max = %.3f, Min = %.3f', ...
-%     max(xi{ith, iph}(:, 100)), min(xi{ith, iph}(:, 100)));
-% text(10, -1.5, textStr)
-
-nexttile
-%%
-ith = 30;
-iph = 59;
-gax = creategaxis(g1(ith, iph), g2(ith, iph), glw1, glw2, dgax);
-gInh1 = gaussian(gax, g1(ith, iph), glw1);
-gInh2 = gaussian(gax, g2(ith, iph), glw2);
-gInh1 = gInh1/sum(gInh1);
-gInh2 = gInh2/sum(gInh2);
-contour(gInh1'*gInh2)
-colorbar
-
-clf
-plot(gax, gInh1, '-o')
-hold on
-plot(gax, gInh2, '-o')
-yyaxis right
-plot(gax, gInh1.*gInh2, '-o')
-
-max(gInh1)
-max(gInh2)
-max(gInh1.*gInh2)
-%{
-nexttile(5, [2, 2])
-plot(x*180/pi, rescaledata(y, 'maxabs'), 'o-')
-hold on
-plot(xx*180/pi, rescaledata(yy, 'maxabs'))
-plot(xx*180/pi, initFit)
-plot(xx*180/pi, initFit2)
-plot(xx*180/pi, rescaledata(signalPowder, 'maxabs'), 'ko-')
-textStr = sprintf('Max = %.3f, Min = %.3f', ...
-    max(rescaledata(signalPowder, 'maxabs')), ...
-    min(rescaledata(signalPowder, 'maxabs')));
-text(10, 0.5, textStr)
-
-textStr = "thetas = 0:0.5:180; phis = 0:0.5:360;" + newline + ...
-    "dgax = 0.00005; computational time 5.16 h";
-text(110, -0.5, textStr)
-%}
-
-%% 
-
-%{
-% [nTheta, nPhi] = size(xi);
-signalPowder = zeros(numel(xx), 1);
-
-wbarTh = waitbar(0, '1', 'Name', 'signalPowder');
-% wbarPh = waitbar(0, '1', 'Name', 'In the for cycle (Phi)');
-% 
-for ith = 1:nTheta
-    % Update waitbar and message
-    waitbar(ith/nTheta, wbarTh, sprintf('%d out of %d', ith, nTheta))
-    
-    for iph = 1:nPhi
-%         waitbar(iph/nPhi, wbarPh, sprintf('%d out of %d', iph, nPhi))
-        xi_ = xi{ith, iph};
-        [ngax, ~] = size(xi_);
-        signalSummed = zeros(numel(xx), ngax);
-        for ig1 = 1:ngax
-            for ig2 = 1:ngax
-                signalSummed(:, ig1) = signalSummed(:, ig1) + ...
-                    crystalEseem(xi_(ig1, ig2), xx);
-            end
-            signal_{ith, iph} = sum(signalSummed, 2);
-        end
-        % Solid angle normalization
-%         theta_ = thetas(ith);
-%         signal_{ith, iph} = sum(signalSingleSumg2, 2)*sin(theta_);
-%         signalPowder = signalPowder + signal_{ith, iph};
-    end
-    theta_ = thetas(ith);
-    signalPowder = signalPowder + signal_{ith, iph}*sin(theta_);
-end
-
-delete(wbarTh)
-% delete(wbarPh)
-%}
-
-% signalPowder = zeros(numel(xx), 1);
-% for ith = 1:nTheta
-%     theta_ = thetas(ith);
-%     for iph = 1:nPhi
-%         signalPowder = signalPowder + signal_{ith, iph}*sin(theta_);
-%     end
-% end
-
-
-% plot(xx*180/pi, -rescaledata(sin(2*xx), y))
-
-%%
-aa.signalPowder = zeros(numel(xx), 1);
-
-for ith = 1:nTheta
-    for iph = 1:nPhi
-        aa.signalPowder = aa.signalPowder + aa.signal_{ith, iph};
-    end
-end
-%% Mean xi
-
-% for ith = 1:nTheta
-%     theta_ = thetas(ith);
-%     xitest(ith, :) = repmat(cos(theta_)^4, 1, nPhi);
-%     xitest(ith, :) = repmat(1, 1, nPhi);
-% end
-
-for ith = 1:nTheta
-    theta_ = thetas(ith);
-    xiMean = xiMean + sum(xi(ith, :))*sin(theta_);
-end
-normTh = pi/2/nTheta;
-normPh = 1/nPhi;
-normTot = normPh*normTh;
-xiMean = xiMean*normTot*180/pi % /nTheta*pi/2
-% xiMean = xiMean/normTh
-
-%%
-
-g1_ = g1(1, 1);
-g2_ = g2(1, 1);
-lw1 = 15e6;  % Hz
-lw2 = 15e6;  % Hz
-% The g-factor linewidth for each one is (delta_nu_i = lw_i):
-% delta_g_i mu_B B0 = h delta_nu_i
-glw1 = planck/bmagn/0.35*lw1;
-glw2 = planck/bmagn/0.35*lw2;
-
-xx = creategaxis(g1_, g2_, glw1, glw2, 0.0001);
-% xx = 1.995:0.0001:2.015;
-
-gd1 = gaussian(xx, g1_, glw1);
-gd2 = gaussian(xx, g2_, glw2);
-
-figure()
-plot(xx, gd1, xx, gd2)
-
-%%
-
-clf
-aa = creategaxis(g1(140, 1), g2(140, 1), glw1, glw2, dgax);
-plot(aa, gaussian(aa, g1(140, 1), glw1), ...
-    aa, gaussian(aa, g2(140, 1), glw2))
-yyaxis right
-plot(aa, gaussian(aa, g1(140, 1), glw1) .* gaussian(aa, g2(140, 1), glw2))
-
-%%
-
-%}
-
-function [gax, gInh1, gInh2] = creategaxis(g1, g2, glw1, glw2, dgax)
-    xxFactor = 1;
-    xmin = min([g1 - xxFactor*glw1, g2 - xxFactor*glw2]);
-    xmax = max([g1 + xxFactor*glw1, g2 + xxFactor*glw2]);
-    gax = xmin:dgax:xmax;
-    
-    % Inhomogeneously broadened gaussian distributions
-    gInh1 = gaussian(gax, g1, glw1);
-    gInh2 = gaussian(gax, g2, glw2);
-    % Normalization
-    gaxForNormaliz1 = ...
-        (gax(round(end/2)) - 5*glw1):dgax:(gax(round(end/2)) + 5*glw1);
-    gaxForNormaliz2 = ...
-        (gax(round(end/2)) - 5*glw2):dgax:(gax(round(end/2)) + 5*glw2);
-    normFactorgInh1 = sum(gaussian(gaxForNormaliz1, g1, glw1));
-    normFactorgInh2 = sum(gaussian(gaxForNormaliz2, g2, glw2));
-    gInh1 = gInh1/normFactorgInh1;
-    gInh2 = gInh2/normFactorgInh2;
-end
-
-function centeredMatrix = createcenteredmatrix(gInh1, gInh2)
-    nPoints = numel(gInh1);
-    multipl = gInh1'*gInh2;
-    [~, idxMax1] = max(multipl(:, round(nPoints)));
-    [~, idxMax2] = max(multipl(round(nPoints), :));
-    halfWidthFin = min([idxMax1, idxMax2]) - 2;
-
-    centeredMatrix = ...
-        multipl(idxMax1 - halfWidthFin:idxMax1 + halfWidthFin, ...
-                idxMax2 - halfWidthFin:idxMax2 + halfWidthFin);
-end
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/zech_psiOopEseem_powderAverage_inhBroadening.m b/zech_psiOopEseem_powderAverage_inhBroadening.m
index 9d565bfd152a45587bcc512f48cfda229547b10a..33da7e9f8de748c3dbd4d5e05db1403e4ea9840e 100755
--- a/zech_psiOopEseem_powderAverage_inhBroadening.m
+++ b/zech_psiOopEseem_powderAverage_inhBroadening.m
@@ -13,14 +13,14 @@ importedData = readtable(fitName);
 xx = importedData{:, 1}*pi/180;
 yy = importedData{:, 2};
 
-crystalEseem = @(p, beta) -( ...
-    0.5*sin(2*beta) * sin(2*p)^4 + ...
-    sin(beta) * cos(2*p)^2 * sin(2*p)^2);  % p = alpha
+crystalEseemZech = @(p, beta) -( ...
+    0.5*sin(2*beta) .* sin(2*p).^4 + ...
+    sin(beta) .* cos(2*p).^2 .* sin(2*p).^2);  % p = alpha
 
 p0Z = 31.5*pi/180;
 p0Timmel = 41*pi/180;
-initFit = rescaledata(crystalEseem(p0Z, xx), 'maxabs');
-expectFit = rescaledata(crystalEseem(p0Timmel, xx), 'maxabs');
+initFit = rescaledata(crystalEseemZech(p0Z, xx), 'maxabs');
+expectFit = rescaledata(crystalEseemZech(p0Timmel, xx), 'maxabs');
 
 crystalEseem = @(p, beta) -(...
     1/2 * sin(2*beta) .* cos(p).^4 + ...
@@ -38,20 +38,29 @@ plot(xx*180/pi, initFit2)
 plot(xx*180/pi, expectFit)
 % esfit()
 
+%%
+
+for ii = 1:4
+    loadPath = append("powderAverage_inhBroadening_glw_0", string(ii), ".mat");
+    sim{ii} = load(loadPath);
+end
+
 %% Dipolar interaction matrix, g1 and g2
 
 % Dipolar interaction, p = [dip, theta, phi]
 dipFunc = @(dip, theta, phi) dip*((sin(theta)*cos(phi)).^2 - 1/3);
 
 % Mixing angle, p = [dd, JJ, B0, g1, g2] in [MHz, MHz, T, adim, adim]
-xiFunc = @(dd, JJ, B0, g1, g2) atan( (dd + JJ).*1e6 .* ...
-    planck./(2*pi*(bmagn*B0)) ./ (g1 - g2) );
+xiFunc = @(dd, JJ, B0, g1, g2) atan( (dd + 2*JJ).*1e6 .* ...
+    planck./(bmagn*B0) ./ (g1 - g2) );
+alphaFunc = @(dd, JJ, B0, g1, g2) ...
+    1/2*atan( (bmagn*B0)/planck.*(g1 - g2)/2 ./((JJ + dd/2)*1e6));
 
 % Parameters of the system
 % Relative orientation of g_P700+ to g_A1-
 eulerAnglesZech = [81, 126, 182]*pi/180;  % Zech, 'A structural model ...'
 % Same as used by Easyspin
-% eulerAnglesZech1to2 = [-182, -126, -81]*pi/180;  % Zech, 'A structural model ...'
+% eulerAnglesZech = [-182, -126, -81]*pi/180;  % Zech, 'A structural model ...'
 
 % Taken from Easyspin example
 Sys.S = [1/2 1/2];
@@ -64,8 +73,8 @@ eulerAnglesEasyspin = Sys.gFrame(1, :);
 % Sys.J = -unitconvert(1e-3,'mT->MHz'); % MHz
 % Sys.dip = unitconvert(+0.177,'mT->MHz'); % MHz
 
-dip = unitconvert(0.177,'mT->MHz');
-JJ = unitconvert(-1e-3,'mT->MHz');
+dip = unitconvert(-0.177,'mT->MHz');
+JJ = unitconvert(1e-3,'mT->MHz');
 mwFreq = 9.7e9;  % Hz
 B0 = 0.3459;  % T, static magnetic field (max of trEPR spectrum)
 % B0 = 0.3461;
@@ -78,15 +87,16 @@ gPulsePosition = planck*mwFreq/bmagn/B0;
 excitRange = [-1/2, +1/2]*gPulseBw + gPulsePosition;
 
 % Theta and phi grid
-thetas = (0:0.5:180)*pi/180;
+thetas = (0:1:180)*pi/180;
 nTheta = numel(thetas);
-phis = (0:0.5:360)*pi/180;
+phis = (0:1:360)*pi/180;
 nPhi = numel(phis);
 
 tic
 
 clear('dd', 'nVers', 'nVersInFrame1', 'g1', 'g2', 'xiNoLw', 'xiNoLw3D', ...
-    'signalNoLw', 'signalPowderNoLw')
+    'alphaNoLw', 'alphaNoLw3D', ....
+    'signalNoLw', 'signalPowderNoLw', 'asignalNoLw', 'asignalPowderNoLw')
 
 dd = dipFunc(dip, thetas', phis);
 % B0 direction in frame 2
@@ -99,13 +109,19 @@ nVersInFrame1 = pagemtimes(erot(eulerAnglesZech), nVers);
 g1 = squeeze(sqrt( sum( (Sys.g(1, :)'.*nVersInFrame1).^2)));
 
 % Mixing angles
-xiNoLw = xiFunc(dd, JJ, B0, g1, g2);
+alphaNoLw = alphaFunc(dd, JJ, B0, g1, g2);
+xiNoLw = xiFunc(-dd, -JJ, B0, g1, g2);
 % Signal
+alphaNoLw3D(1, :, :) = alphaNoLw;
 xiNoLw3D(1, :, :) = xiNoLw;
+asignalNoLw = crystalEseemZech(alphaNoLw3D, xx);
 signalNoLw = crystalEseem(xiNoLw3D, xx);
 % Average over all the solid angles with proper normalization
+alphaMeanNoLw = sum(sin(thetas').*abs(alphaNoLw), 'all')/ ...
+    sum(sin(thetas')*ones(1, nPhi), 'all');
 xiMeanNoLw = sum(sin(thetas').*abs(xiNoLw), 'all')/ ...
     sum(sin(thetas')*ones(1, nPhi), 'all');
+asignalNoLw = sin(thetas).*asignalNoLw;
 signalNoLw = sin(thetas).*signalNoLw;
 % Temporal prefactor sin(2*(dd - JJ)*tau)
 if tau ~= 0
@@ -116,7 +132,11 @@ end
 signalNoLw = permute(signalNoLw, [2, 3, 1]);
 signalNoLw = signalNoLw.*timePrefac;
 signalNoLw = permute(signalNoLw, [3, 1, 2]);
+asignalNoLw = permute(asignalNoLw, [2, 3, 1]);
+asignalNoLw = asignalNoLw.*timePrefac;
+asignalNoLw = permute(asignalNoLw, [3, 1, 2]);
 % Sum every angular contribution to the signal
+asignalPowderNoLw = sum(squeeze(sum(asignalNoLw, 3)), 2);
 signalPowderNoLw = sum(squeeze(sum(signalNoLw, 3)), 2);
     
 toc
@@ -239,123 +259,149 @@ legend()
 
 % Inhomogenous line broadening due to hfi (isotropic)
 % Prisner et al., Time-resolved W-band..., 1995
-% lwArray = logspace(-1, 2, 10);
-lw1 = 15e6;  % Hz
-lw2 = 15e6;  % Hz
-% The g-factor linewidth
-glw1 = planck/bmagn/B0*lw1;
-glw2 = planck/bmagn/B0*lw2;
-% Spacing between g-values
-dgax = 5e-5;
-dgaxInterp = 1e-7;
+lwArray = logspace(-1, 2, 10);
+% for ilw = 5:9
+    lw1 = 15*1e6;  % Hz
+    lw2 = 15*1e6;  % Hz
+    % lw1 = 15e6;
+    % lw2 = 15e6;
+    % The g-factor linewidth
+    glw1 = planck/bmagn/B0*lw1;
+    glw2 = planck/bmagn/B0*lw2;
+    % Spacing between g-values
+    dgax = 1e-5;
+    dgaxInterp = 1e-7;
+
+    signal = zeros(numel(xx), nTheta, nPhi);
+    asignal = zeros(numel(xx), nTheta, nPhi);
+    xi = zeros(nTheta, nPhi);
+    alpha = zeros(nTheta, nPhi);
+
+    computTimes = zeros(nTheta, 1);
+
+    clear('xiPhi_', 'signalPhi_', 'alphaPhi_', 'asignalPhi_')
+    % tic
+    for ith = 1:nTheta
+        tic
+        % Update waitbar and message
+        if ~exist('wbarTh', 'var')
+            wbarTh = waitbar(0, '1', 'Name', 'Theta');
+        end
+        waitbar(ith/nTheta, wbarTh, sprintf('%d out of %d', ith, nTheta))
+
+        theta_ = thetas(ith);
+        % theta_ = theta_/multTheta;
+        % theta_ = theta_ * 10;
+
+        signalPhi_ = zeros(numel(xx), nPhi);
+        asignalPhi_ = zeros(numel(xx), nPhi);
+        xiPhi_ = zeros(1, nPhi);
+        alphaPhi_ = zeros(1, nPhi);
+        ddPhi_ = dd(ith, :);
+        g1Phi_ = g1(ith, :);
+        g2Phi_ = g2(ith, :);
+        parfor iph = 1:nPhi
+            phi_ = phis(iph);
+
+    %         Finite pulse bandwidth: no signal from spins outside excitRange
+            %{
+            if g1(ith, iph) < excitRange(1) || ...
+                g1(ith, iph) > excitRange(2) || ... 
+                g2(ith, iph) < excitRange(1) || ...
+                g2(ith, iph) > excitRange(2)
+                continue
+            end
+            %}
+
+            % Consider inhomogenous broadening
+            % Create g-axis in order to 'sample' the inh. broadened g-values
+            [gax, gInh1, gInh2] = ...
+                creategaxis(g1Phi_(iph), g2Phi_(iph), glw1, glw2, dgax);
+            deltags = gax - gax(1);
+            % "Probability matrix" of a certain spin interacting with another
+            gaussianFactors = gInh1'*gInh2;
+
+            % Calculate inh signal multiplicity using the fact that the signal
+            % is symmetric for xi -> -xi (hence sum the values of the
+            % non-central (meaning g1 - g2 != 0) multiplicity values)
+            diagsToExtract = -(numel(gInh1) - 1):(numel(gInh1) - 1);
+    %         xiMultiplicity = spdiags(gaussianFactors, diagsToExtract);
+            xiMultiplicity = sum(spdiags(gaussianFactors, diagsToExtract), 1);
+            xiMultiplicity = xiMultiplicity(end/2 + 0.5:end) + ...
+                xiMultiplicity(end/2 + 0.5:-1:1);
+    %         xiMultiplicity(1) = xiMultiplicity(1)/2;
+
+            % Interpolate
+            [gaxInterp, ~, ~] = ...
+                creategaxis(g1Phi_(iph), g2Phi_(iph), glw1, glw2, dgaxInterp);
+            deltagsInterp = gaxInterp - gaxInterp(1);
+    %         xiMultiplicity(1) = xiMultiplicity(1)*2;
+            xiMultiplicityInterp = ...
+                interp1(deltags, xiMultiplicity, deltagsInterp, ...
+                'linear', 'extrap');
+            xiMultiplicityInterp = ...
+                xiMultiplicityInterp/sum(xiMultiplicityInterp);
+            % xiMultiplicity2(1) = 1/2*xiMultiplicity2(1);
+
+            % Mixing angles
+            xi_ = atan( (ddPhi_(iph) + 2*JJ)*1e6 * ...
+                            planck/(bmagn*B0) ./ deltagsInterp );
+            alpha_ = 1/2*atan( (bmagn*B0)/planck.*(deltagsInterp)/2 ./ ...
+                ((JJ + ddPhi_(iph)/2)*1e6));
+            % Average over inh. broadening
+            xiPhi_(iph) = sum(abs(xi_).*xiMultiplicityInterp)/...
+                sum(xiMultiplicityInterp);
+            alphaPhi_(iph) = sum(abs(alpha_).*xiMultiplicityInterp)/...
+                sum(xiMultiplicityInterp);
+            % Signal
+            signalInh = crystalEseem(xi_, xx);
+            asignalInh = crystalEseemZech(xi_, xx);
+            % Average over inh. broadening
+            signalPhi_(:, iph) = sum(signalInh.*xiMultiplicityInterp, 2)/ ...
+                sum(xiMultiplicityInterp);
+            asignalPhi_(:, iph) = sum(asignalInh.*xiMultiplicityInterp, 2)/ ...
+                sum(xiMultiplicityInterp);
+
+
+    %         ngaxLarge = numel(gaxLarge);
+    %         ngax = numel(gaussianFactors(1, :));
+
+    %         gaxIdxs = round(ngaxLarge/2 - ngax/2):round(ngaxLarge/2 + ngax/2);
+    %         gax = gaxLarge(gaxIdxs);
+    %         gInh1 = gInh1Large(gaxIdxs);
+    %         gInh2 = gInh2Large(gaxIdxs);
+    %         xi_ = atan( (ddPhi_(iph) + 2*JJ)*1e6 * ...
+    %             planck/(2*pi*(bmagn*B0)) ./ deltags );  
 
-signal = zeros(numel(xx), nTheta, nPhi);
-xi = zeros(nTheta, nPhi);
 
-computTimes = zeros(nTheta, 1);
 
-clear('xiPhi_', 'signalPhi_')
-tic
-for ith = 1:nTheta
-    tic
-    % Update waitbar and message
-    if ~exist('wbarTh', 'var')
-        wbarTh = waitbar(0, '1', 'Name', 'Theta');
-    end
-    waitbar(ith/nTheta, wbarTh, sprintf('%d out of %d', ith, nTheta))
-
-    theta_ = thetas(ith);
-    % theta_ = theta_/multTheta;
-    % theta_ = theta_ * 10;
-    
-    signalPhi_ = zeros(numel(xx), nPhi);
-    xiPhi_ = zeros(1, nPhi);
-    ddPhi_ = dd(ith, :);
-    g1Phi_ = g1(ith, :);
-    g2Phi_ = g2(ith, :);
-    parfor iph = 1:nPhi
-        phi_ = phis(iph);
-        
-%         Finite pulse bandwidth: no signal from spins outside excitRange
-        %{
-        if g1(ith, iph) < excitRange(1) || ...
-            g1(ith, iph) > excitRange(2) || ... 
-            g2(ith, iph) < excitRange(1) || ...
-            g2(ith, iph) > excitRange(2)
-            continue
         end
-        %}
-        
-        % Consider inhomogenous broadening
-        % Create g-axis in order to 'sample' the inh. broadened g-values
-        [gax, gInh1, gInh2] = ...
-            creategaxis(g1Phi_(iph), g2Phi_(iph), glw1, glw2, dgax);
-        deltags = gax - gax(1);
-        % "Probability matrix" of a certain spin interacting with another
-        gaussianFactors = gInh1'*gInh2;
-        
-        % Calculate inh signal multiplicity using the fact that the signal
-        % is symmetric for xi -> -xi (hence sum the values of the
-        % non-central (meaning g1 - g2 != 0) multiplicity values)
-        xiMultiplicity = sum(spdiags(gaussianFactors), 1);
-        xiMultiplicity = xiMultiplicity(end/2 + 0.5:end) + ...
-            xiMultiplicity(end/2 + 0.5:-1:1);
-%         xiMultiplicity(1) = xiMultiplicity(1)/2;
-        
-        % Interpolate
-        [gaxInterp, ~, ~] = ...
-            creategaxis(g1Phi_(iph), g2Phi_(iph), glw1, glw2, dgaxInterp);
-        deltagsInterp = gaxInterp - gaxInterp(1);
-%         xiMultiplicity(1) = xiMultiplicity(1)*2;
-        xiMultiplicityInterp = ...
-            interp1(deltags, xiMultiplicity, deltagsInterp, ...
-            'linear', 'extrap');
-        % xiMultiplicity2(1) = 1/2*xiMultiplicity2(1);
-        
-        % Mixing angles
-        xi_ = atan( (ddPhi_(iph) + 2*JJ)*1e6 * ...
-                        planck/(2*pi*(bmagn*B0)) ./ deltagsInterp );
-        % Average over inh. broadening
-        xiPhi_(iph) = sum(abs(xi_).*xiMultiplicityInterp)/...
-            sum(xiMultiplicityInterp);
-        % Signal
-        signalInh = crystalEseem(xi_, xx);
-        % Average over inh. broadening
-        signalPhi_(:, iph) = sum(signalInh.*xiMultiplicityInterp, 2)/ ...
-            sum(xiMultiplicityInterp);
-        
-        
-%         ngaxLarge = numel(gaxLarge);
-%         ngax = numel(gaussianFactors(1, :));
-        
-%         gaxIdxs = round(ngaxLarge/2 - ngax/2):round(ngaxLarge/2 + ngax/2);
-%         gax = gaxLarge(gaxIdxs);
-%         gInh1 = gInh1Large(gaxIdxs);
-%         gInh2 = gInh2Large(gaxIdxs);
-%         xi_ = atan( (ddPhi_(iph) + 2*JJ)*1e6 * ...
-%             planck/(2*pi*(bmagn*B0)) ./ deltags );  
-        
-                
-        
+        % Store
+        signal(:, ith, :) = signalPhi_;
+        asignal(:, ith, :) = asignalPhi_;
+        xi(ith, :) = xiPhi_;
+        alpha(ith, :) = alphaPhi_;
+        computTimes(ith) = toc;
+%         computTimes(ith)
     end
-    % Store
-    signal(:, ith, :) = signalPhi_;
-    xi(ith, :) = xiPhi_;
-    computTimes(ith) = toc;
-end
-toc
-
-% Average over solid angle
-xiMean = sum(sin(thetas').*abs(xi), 'all')/ ...
-    sum(sin(thetas')*ones(1, nPhi), 'all');
-signalPowder = sum(squeeze(sum(sin(thetas).*signal, 3)), 2)/ ...
-    sum(sin(thetas')*ones(1, nPhi), 'all');
-
-save('powderAverage_inhBroadening_01.mat', ...
-    'xi', 'signal', 'xiMean', 'signalPowder')
-
-delete(wbarTh)
-clear('wbarTh')
+    % toc
+
+    % Average over solid angle
+    xiMean = sum(sin(thetas').*abs(xi), 'all')/ ...
+        sum(sin(thetas')*ones(1, nPhi), 'all');
+    signalPowder = sum(squeeze(sum(sin(thetas).*signal, 3)), 2)/ ...
+        sum(sin(thetas')*ones(1, nPhi), 'all');
+    alphaMean = sum(sin(thetas').*abs(alpha), 'all')/ ...
+        sum(sin(thetas')*ones(1, nPhi), 'all');
+    asignalPowder = sum(squeeze(sum(sin(thetas).*asignal, 3)), 2)/ ...
+        sum(sin(thetas')*ones(1, nPhi), 'all');
+
+%     savePath = append("powderAverage_inhBroadening_glw_0", string(ilw), ".mat");
+%     save(savePath, 'xi', 'signal', 'xiMean', 'signalPowder')
+
+    delete(wbarTh)
+    clear('wbarTh')
+% end
 
 % clf
 % plot(xx, signal_{ith, iph})
@@ -364,9 +410,22 @@ clear('wbarTh')
 
 % max(signal_{ith, iph})
 %%
-ith = 342;
-iph = 357;
+
+lwArrayTest = linspace(0.1, 50, 100);
+ith = 15;
+iph = 15;
+% ith = 342;
+% iph = 357;
+% for ilw = 1:100
+%     lw1 = lwArrayTest(ilw)*1e6;  % Hz
+%     lw2 = lwArrayTest(ilw)*1e6;  % Hz
+    lw1 = 5e6;
+    lw2 = 5e6;
+    glw1 = planck/bmagn/B0*lw1;
+    glw2 = planck/bmagn/B0*lw2;
     signalPhi_ = zeros(numel(xx), nPhi);
+    dgax = 1e-5;
+    dgaxInterp = 1e-7;
     xiPhi_ = zeros(1, nPhi);
     ddPhi_ = dd(ith, :);
     g1Phi_ = g1(ith, :);
@@ -380,7 +439,9 @@ iph = 357;
         % Calculate inh signal multiplicity using the fact that the signal
         % is symmetric for xi -> -xi (hence sum the values of the
         % non-central (meaning g1 - g2 != 0) multiplicity values)
-        xiMultiplicity = sum(spdiags(gaussianFactors), 1);
+        diagsToExtract = -(numel(gInh1) - 1):(numel(gInh1) - 1);
+    %         xiMultiplicity = spdiags(gaussianFactors, diagsToExtract);
+            xiMultiplicity = sum(spdiags(gaussianFactors, diagsToExtract), 1);
         xiMultiplicity = xiMultiplicity(end/2 + 0.5:end) + ...
             xiMultiplicity(end/2 + 0.5:-1:1);
 %         xiMultiplicity(1) = xiMultiplicity(1)/2;
@@ -397,17 +458,23 @@ iph = 357;
         
         % Mixing angles
         xi_ = atan( (ddPhi_(iph) + 2*JJ)*1e6 * ...
-                        planck/(2*pi*(bmagn*B0)) ./ deltagsInterp );
+                        planck/(bmagn*B0) ./ deltagsInterp );
         % Average over inh. broadening
         xiPhi_(iph) = sum(abs(xi_).*xiMultiplicityInterp)/...
             sum(xiMultiplicityInterp);
-        xiPhi_(iph)*180/pi
+        mixingAngle(ilw) = xiPhi_(iph)*180/pi;
+        [valMax, idxMax] = max(xiMultiplicityInterp);
+        positionMax(ilw) = deltagsInterp(idxMax);
+        [~, idxFwhm] = min(abs(valMax/2 - xiMultiplicityInterp));
+        xiMultFwhm(ilw) = abs(deltagsInterp(idxFwhm) - positionMax(ilw));
         % Signal
         signalInh = crystalEseem(xi_, xx);
         % Average over inh. broadening
         signalPhi_(:, iph) = sum(signalInh.*xiMultiplicityInterp, 2)/ ...
             sum(xiMultiplicityInterp);         
 
+% end
+clf
 plot(deltags, gInh1, 'o-', deltags, gInh2, 'o-')
 plot(deltags, xiMultiplicity, 'o', deltagsInterp, xiMultiplicityInterp)
 yyaxis right
@@ -652,14 +719,14 @@ function [gax, gInh1, gInh2] = creategaxis(g1, g2, glw1, glw2, dgax)
     gInh1 = gaussian(gax, g1, glw1);
     gInh2 = gaussian(gax, g2, glw2);
     % Normalization
-    gaxForNormaliz1 = ...
-        (gax(round(end/2)) - 5*glw1):dgax:(gax(round(end/2)) + 5*glw1);
-    gaxForNormaliz2 = ...
-        (gax(round(end/2)) - 5*glw2):dgax:(gax(round(end/2)) + 5*glw2);
-    normFactorgInh1 = sum(gaussian(gaxForNormaliz1, g1, glw1));
-    normFactorgInh2 = sum(gaussian(gaxForNormaliz2, g2, glw2));
-    gInh1 = gInh1/normFactorgInh1;
-    gInh2 = gInh2/normFactorgInh2;
+%     gaxForNormaliz1 = ...
+%         (gax(round(end/2)) - 5*glw1):dgax:(gax(round(end/2)) + 5*glw1);
+%     gaxForNormaliz2 = ...
+%         (gax(round(end/2)) - 5*glw2):dgax:(gax(round(end/2)) + 5*glw2);
+%     normFactorgInh1 = sum(gaussian(gaxForNormaliz1, g1, glw1));
+%     normFactorgInh2 = sum(gaussian(gaxForNormaliz2, g2, glw2));
+%     gInh1 = gInh1/normFactorgInh1;
+%     gInh2 = gInh2/normFactorgInh2;
 end
 
 % function centeredMatrix = createcenteredmatrix(gInh1, gInh2)
diff --git a/zech_psiOopEseem_trEPRstickSpectra.m b/zech_psiOopEseem_trEPRstickSpectra.m
new file mode 100755
index 0000000000000000000000000000000000000000..f67fdf4feaad102af2f2869ac432f9d7de757a97
--- /dev/null
+++ b/zech_psiOopEseem_trEPRstickSpectra.m
@@ -0,0 +1,363 @@
+%
+clearvars
+
+%% Easyspin simulation
+
+% Taken from Easyspin example
+clear('Sys', 'Exp', 'Vary', 'VaryExp')
+
+Sys.S = [1/2 1/2];
+Sys.g = [2.0030 2.0026 2.0023; ... % P700+
+         2.0062 2.0051 2.0022];    % A1-
+Sys.gFrame = [-10 -128 -83; ...
+                0    0   0]*pi/180;
+Sys.eeFrame = [0 90 0]*pi/180;  % zD direction is along -x of A1-
+
+Sys.J = unitconvert(-1e-3,'mT->MHz'); % MHz
+Sys.dip = unitconvert(+0.177,'mT->MHz'); % MHz
+Sys.lw = 10;  % MHz
+Sys.initState = 'singlet';
+% Vary.dip = 1;
+% Vary.J = 0.1;
+% Vary.lw = 5;
+% VaryExp.mwCenterSweep = [0.1, 0];
+
+B0 = 345.9;  % mT
+mwFreq = 9.7;
+xxSim = linspace(9.65, 9.75, 2048);  % GHz
+xxSim1 = mhz2mt(xxSim*1e3);  % mT
+
+% Frequency sweep
+Exp.mwCenterSweep = [mean(xxSim), max(xxSim) - min(xxSim)];
+Exp.Field = B0;
+
+% Magnetic field sweep
+% Exp.CenterSweep = [mean(xxSim1), max(xxSim1) - min(xxSim1)]; % mT
+% Exp.mwFreq = mwFreq; % GHz
+
+Exp.nPoints = numel(xxSim1);
+Exp.Harmonic = 0;
+
+% Opt.GridSize = 10;
+FitOpt.Verbosity = 0;
+
+ySim = pepper(Sys, Exp);
+
+hold on
+clf
+plot(xxSim, ySim/max(ySim), xxSim, trSignalPowder/max(trSignalPowder))
+legend('Easyspin', 'Gianluca')
+
+Ham = ham(Sys, [0, 0, B0]);
+[Ham0, mux, muy, muz] = ham(Sys);
+
+%%
+
+esfit(trSignalPowder, @pepper, {Sys, Exp}, {Vary}, FitOpt)
+
+%% My powder average
+
+% For some reason I need to multiply by these random factors in order to
+% have a good match with the spectrum simulated using Easyspin
+dip = - Sys.dip*1.4;  % MHz
+JJ = - Sys.J/2.4;  % MHz
+% Ahfi = [9, 9, 12.8];  % MHz, only for A1- radical
+eAngles = Sys.gFrame(1, :);
+
+% Expected input: B0 in mT
+% Output: frequency nu in GHz
+g2wFunc = @(B0, g) bmagn*B0/planck*g*1e-12;
+% Expected input: deltaw in GHz, J in MHz, d in MHz
+% Output: Omega in GHz
+OmegaFunc = @(deltaw, J, d) sqrt(deltaw.^2 + (J*1e-3 + d/2*1e-3).^2);
+% Dipolar interaction
+% Makes use of the fact that cos(thetaD) = dotProduct(B0, zD)
+% Expected input:
+%   dip:    1 x 1
+%   nVers:  3 x nTheta x nPhi
+%   zD:     3 x 1
+dipFunc = @(dip, nVers, zD) dip*((sum(nVers.*zD)).^2 - 1/3);
+
+% Theta, phi grid
+thetas = (0:3:180)*pi/180;
+nTheta = numel(thetas);
+phis = (0:3:360)*pi/180;
+nPhi = numel(phis);
+
+% Direction of B0
+clear('nVers')
+nVers(1, :, :) = sin(thetas')*cos(phis);
+nVers(2, :, :) = sin(thetas')*sin(phis);
+nVers(3, :, :) = cos(thetas')*ones(1, nPhi);
+% Effective g-values
+g2 = squeeze(sqrt( sum( (Sys.g(2, :)'.*nVers).^2)));
+% nVersInFrame1 = pagemtimes(erot(eAngles), nVers);
+% g1 = squeeze(sqrt( sum( (Sys.g(1, :)'.*nVersInFrame1).^2)));
+g1TensorInFrame2 = erot(eAngles)'*diag(Sys.g(1, :))*erot(eAngles);
+g1 = squeeze(sqrt( sum( (pagemtimes(g1TensorInFrame2, nVers)).^2)));
+% Dipolar interaction
+zD = erot(Sys.eeFrame)*[0, 0, 1]';
+dd = squeeze(dipFunc(dip, nVers, zD));
+% Atensor = squeeze(sqrt( sum( (Ahfi'.*nVers).^2)));
+
+w0 = g2wFunc(B0, (g1 + g2)/2);  % GHz
+deltaw = g2wFunc(B0, (g1 - g2)/2);  % GHz
+Omega = OmegaFunc(deltaw, JJ, dd);  % GHz
+
+clear('wReson', 'intensityOfLine', 'intensityReson4D')
+
+wReson(1, :, :) = w0 - (JJ - dd)*1e-3 - (Omega);  % w12
+wReson(2, :, :) = w0 + (JJ - dd)*1e-3 - (Omega);  % w34
+wReson(3, :, :) = w0 - (JJ - dd)*1e-3 + (Omega);  % w13
+wReson(4, :, :) = w0 + (JJ - dd)*1e-3 + (Omega);  % w24
+% BReson = ...
+%     unitconvert(wReson*1e-6, 'MHz->mT', ...
+%     permute(repmat((g1 + g2)/2, [1, 1, 4]), [3, 1, 2]));
+
+
+intensityOfLine = 1/8*(deltaw.^2)./(Omega.^2);
+intensityReson = repmat([1; -1; 1; -1], [1, nTheta, nPhi]); 
+% This is correct only if the lw is isotropic (not dependent on angles)
+intensityReson = ...
+    intensityReson.*reshape(intensityOfLine, [1, nTheta, nPhi]);  
+
+lw1 = repmat(Sys.lw*1e-3, [4, nTheta, nPhi]);
+%lwHfi = repmat(Atensor*1e-3, [4, 1, 1]);
+trSignal = gaussiantransitions(xxSim', wReson, lw1, "fwhm");
+
+trSignal = trSignal.*reshape(intensityReson, [1, size(intensityReson)]);
+trSignalSum = squeeze(sum(trSignal, 2));  % Sum over transitions
+
+solidAngleWeight = sin(thetas)/sum(sin(thetas')*ones(1, nPhi), 'all');
+trSignalPowder = sum(squeeze(sum(trSignalSum.*solidAngleWeight, 3)), 2);
+    
+hold on
+% clf
+plot(xxSim, trSignalPowder/max(trSignalPowder))
+
+%%
+
+%{
+yA = gaussiantransitions(xxSim', wReson, ...
+    repmat(Sys.lw*1e-3, [4, nTheta, nPhi]), "fwhm");
+yB = gaussiantransitions(xxSim', wReson, ...
+    repmat(reshape(Atensor*1e-3, [1, nTheta, nPhi]), [4, 1, 1]), "fwhm");
+
+yC = gaussiantransitionshfi(xxSim', wReson, ...
+    repmat(Sys.lw*1e-3, [4, nTheta, nPhi]), ...
+    repmat(reshape(Atensor*1e-3, [1, nTheta, nPhi]), [4, 1, 1]), "fwhm");
+
+ith = 1;
+iph = 1;
+yplot1 = yA(:, itrans, ith, iph);
+yplot1 = yplot1/max(yplot1);
+yplot2 = yB(:, itrans, ith, iph);
+yplot2 = yplot2/max(yplot2);
+yplot3 = yC(:, itrans, ith, iph);
+yplot3 = yplot3/max(yplot3);
+clf
+itrans = 1;
+plot(xxSim, yplot1)
+hold on
+plot(xxSim, yplot2)
+
+convSpectrum = conv(yplot1, yplot2, 'same');
+plot(xxSim, convSpectrum/max(convSpectrum))
+plot(xxSim - 0.0051, yplot3)
+yline(0.5)
+
+%% Reproduce experimental data
+
+load('S:\projects\zech_psi\data\processed\ZePSI-E-007015.mat');
+% clf
+% h = ScrollableAxes();
+% plot(h, x{2}, x{1}, y');
+xdata = x{2}/10;  % mT
+ydata = y(815, :);
+ydata = ydata/max(ydata);
+
+% Taken from Easyspin example
+clear('Sys', 'Exp', 'Vary', 'VaryExp')
+Sys.S = [1/2 1/2];
+Sys.g = [2.0030 2.0026 2.0023; ... % P700+
+         2.0062 2.0051 2.0022];    % A1-
+Sys.gFrame = [-10 -128 -83; ...
+                0    0   0]*pi/180;
+Sys.eeFrame = [0 90 0]*pi/180;  % zD direction is along -x of A1-
+
+Sys.J = unitconvert(-1e-3,'mT->MHz'); % MHz
+Sys.dip = unitconvert(0.177,'mT->MHz'); % MHz
+Sys.lw = 0.3;
+Sys.Nucs = 'H';
+Sys.A = [0, 0, 0, 9, 9, 13];
+
+Sys.initState = 'singlet';
+
+% Vary.g = [0.001, 0.001, 0.001; 0.001, 0.001, 0.001];
+Vary.lw = 5;
+Vary.dip = 1;
+Vary.J = 0.1;
+Vary.A = [0, 0, 0, 9, 9, 13];
+
+
+Exp.CenterSweep = [mean(xdata) + 2, max(xdata) - min(xdata)];
+Exp.mwFreq = 9.6;
+Exp.nPoints = numel(xdata);
+Exp.Harmonic = 0;
+VaryExp.CenterSweep = [3, 0];
+
+% Opt.GridSize = 10;
+FitOpt.Verbosity = 0;
+
+
+clf
+plot(xdata, ydata, xdata, pepper(Sys, Exp)/max(pepper(Sys, Exp)))
+
+%%
+
+esfit(ydata, @pepper, {Sys, Exp}, {Vary, VaryExp})
+
+%%
+
+figure(4)
+s = surf(X, Y, Z, g2, 'EdgeColor', 'none');
+axis equal
+viridis = viridis();
+colormap(viridis)
+colorbar       
+xlabel('X')
+title('g2')
+
+figure(6)
+s = surf(X, Y, Z, gSys, 'EdgeColor', 'none');
+axis equal
+viridis = viridis();
+colormap(viridis)
+colorbar       
+xlabel('X')
+title('g1Sys')
+
+figure(7)
+s = surf(X, Y, Z, g11, 'EdgeColor', 'none');
+axis equal
+viridis = viridis();
+colormap(viridis)
+colorbar       
+xlabel('X')
+title('g11')
+
+figure(8)
+s = surf(X, Y, Z, g12, 'EdgeColor', 'none');
+axis equal
+viridis = viridis();
+colormap(viridis)
+colorbar       
+xlabel('X')
+title('g12')
+
+nVersInFrame1 = pagemtimes(erot([81 126 50]*pi/180), nVers);
+% nVersInFrame1 = nVers;
+g1 = squeeze(sqrt( sum( (Sys.g(1, :)'.*nVersInFrame1).^2)));
+
+figure(9)
+s = surf(X, Y, Z, g1, 'EdgeColor', 'none');
+axis equal
+viridis = viridis();
+colormap(viridis)
+colorbar       
+xlabel('X')
+title('g1')
+
+%%
+
+trxx1 = planck*trxx/bmagn/gfree;
+ith = 10;
+iph = 300;
+ith = 62;
+iph = 185;
+ith = 1;
+iph = 1;
+clf
+for ith = 1:nTheta
+    for iph = 1:nPhi
+for itrans = 1:4
+    plot(xxSim, trSignal(:, itrans, ith, iph))
+    hold on
+end
+    end
+end
+plot(xxSim, trSignal(:, 1, 30, 60))
+xlim([-1, 1]*(Omega(ith, iph) + JJ - dd(ith, iph) + 2*trlw))
+xline(0)
+title(string(dd(ith, iph)))
+
+%}
+
+%%
+
+function y1 = gaussiantransitions(xx, x0, c, mode)
+    % Output:
+    % y1:   nAx x 4 x nTheta x nPhi
+    arguments
+        xx  (:, 1) double       % nA x 1 equally spaced values
+        x0  (4, :, :) double    % 4 x nTheta x nPhi
+        c   (4, :, :) double    % 4 x nTheta x nPhi
+        mode string = "var"
+    end
+    
+    if strcmp(mode, "fwhm")
+        % If the input is fwhm, multiply the input parameters to have var
+        c = c/(2*sqrt(2*log(2)));
+    end
+    
+    nAx = numel(xx);
+    xx = repmat(xx, [1, size(x0)]);
+    x0 = repmat( ...
+            reshape(x0, [1, size(x0)]), ...
+            [nAx, 1, 1, 1]);
+    c = repmat( ...
+            reshape(c, [1, size(c)]), ...
+            [nAx, 1, 1, 1]);
+    y1 = exp(-1/2 * (xx - x0).^2 ./ c.^2);
+    % Normalization over a range equal to 10*fwhm such that the area is
+    % equal to 1
+%     dxx = xx(2) - xx(1);
+%     xxNorm = -5*max(fwhm(:)):dxx:5*max(fwhm(:));
+%     xxNorm = repmat(xxNorm', size(x04D));
+%     xxNorm = xxNorm + x04D;
+%     y2 = exp(-4*log(2)*(xxNorm - x04D).^2 ./ fwhm4D.^2);
+%     norm = sum(y2, 1)*dxx;
+%     y1 = y1 ./ norm;
+
+end
+
+function [y1, yc, yhfi] = gaussiantransitionshfi(xx, x0, c, hfi, mode)
+    % Output:
+    % y1:   nAx x 4 x nTheta x nPhi
+    arguments
+        xx  (:, 1) double       % nA x 1 equally spaced values
+        x0  (4, :, :) double    % 4 x nTheta x nPhi
+        c   (4, :, :) double    % 4 x nTheta x nPhi
+        hfi   (4, :, :) double    % 4 x nTheta x nPhi
+        mode string = "var"
+    end
+    
+    if strcmp(mode, "fwhm")
+        % If the input is fwhm, multiply the input parameters to have var
+        c = c/(2*sqrt(2*log(2)));
+        hfi = hfi/(2*sqrt(2*log(2)));
+    end
+    
+    % Convolution of N_sigma1 and N_sigma2 is N_(sqrt(sigma1^2 + sigma2^2))
+    y1 = gaussiantransitions(xx, x0, sqrt(c.^2 + hfi.^2), "var");
+    yc = gaussiantransitions(xx, x0, c, "var");
+    yhfi = gaussiantransitions(xx, x0, hfi, "var");
+end
+
+
+
+
+
+
+
+