diff --git a/Internal/intCheckForInstallLib.m b/Internal/intCheckForInstallLib.m new file mode 100644 index 0000000..59e8a8a --- /dev/null +++ b/Internal/intCheckForInstallLib.m @@ -0,0 +1,22 @@ +function intCheckForInstallLib + +boxes = {'Curve Fitting Toolbox',... +'Global Optimization Toolbox',... +'Image Processing Toolbox', ... +'Neural Network Toolbox',... +'Optimization Toolbox',... +'Parallel Computing Toolbox',... +'Statistics and Machine Learning Toolbox'}; + +tmp = ver; + + +for ii = 1:numel(boxes) +found = strfind({tmp.Name}, boxes{ii} ); +if isempty(cell2mat( found )); + warning( ['Toolbox "', boxes{ii}, '" is missing. This may cause errors.' ] ); +end + +end + +end \ No newline at end of file diff --git a/batch/BatchSuperSeggerOpti.m b/batch/BatchSuperSeggerOpti.m index 027cb7c..28a754c 100644 --- a/batch/BatchSuperSeggerOpti.m +++ b/batch/BatchSuperSeggerOpti.m @@ -54,6 +54,8 @@ function BatchSuperSeggerOpti(dirname_,skip,clean_flag,res,startEnd,showWarnings % Init +intCheckForInstallLib + if (nargin < 1) || isempty( dirname_ ) || strcmp(dirname_ ,'.') dirname_ = pwd; end diff --git a/viz/superSeggerViewerGui.m b/viz/superSeggerViewerGui.m index c7ea60e..0b4159c 100644 --- a/viz/superSeggerViewerGui.m +++ b/viz/superSeggerViewerGui.m @@ -20,6 +20,9 @@ % You should have received a copy of the GNU General Public License % along with SuperSegger. If not, see . + +intCheckForInstallLib + gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ...