Skip to content

Commit

Permalink
Added warning message if not all required toolboxes are present.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Wiggins committed Jun 26, 2018
1 parent 8a3e47d commit cc261ee
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Internal/intCheckForInstallLib.m
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions batch/BatchSuperSeggerOpti.m
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions viz/superSeggerViewerGui.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
% You should have received a copy of the GNU General Public License
% along with SuperSegger. If not, see <http://www.gnu.org/licenses/>.


intCheckForInstallLib

gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
Expand Down

0 comments on commit cc261ee

Please sign in to comment.