-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added warning message if not all required toolboxes are present.
- Loading branch information
Paul Wiggins
committed
Jun 26, 2018
1 parent
8a3e47d
commit cc261ee
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters