checkToolboxes : checks the toolboxes superSegger needs are installed. Toolboxes needed : gads_toolbox : global optimization image_toolbox : image neural_network_toolbox : neural network optimization_toolbox : optimization statistics_toolbox : statistics OUTPUT : pass : 0 if some of the toolboxes are missing, 1 if not. Copyright (C) 2016 Wiggins Lab Written by Paul Wiggins & Stella Stylianidou. University of Washington, 2016 This file is part of SuperSegger. SuperSegger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SuperSegger is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SuperSegger. If not, see <http://www.gnu.org/licenses/>.
0001 function pass = checkToolboxes () 0002 % checkToolboxes : checks the toolboxes superSegger needs are installed. 0003 % Toolboxes needed : 0004 % gads_toolbox : global optimization 0005 % image_toolbox : image 0006 % neural_network_toolbox : neural network 0007 % optimization_toolbox : optimization 0008 % statistics_toolbox : statistics 0009 % 0010 % OUTPUT : 0011 % pass : 0 if some of the toolboxes are missing, 1 if not. 0012 % 0013 % Copyright (C) 2016 Wiggins Lab 0014 % Written by Paul Wiggins & Stella Stylianidou. 0015 % University of Washington, 2016 0016 % This file is part of SuperSegger. 0017 % 0018 % SuperSegger is free software: you can redistribute it and/or modify 0019 % it under the terms of the GNU General Public License as published by 0020 % the Free Software Foundation, either version 3 of the License, or 0021 % (at your option) any later version. 0022 % 0023 % SuperSegger is distributed in the hope that it will be useful, 0024 % but WITHOUT ANY WARRANTY; without even the implied warranty of 0025 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0026 % GNU General Public License for more details. 0027 % 0028 % You should have received a copy of the GNU General Public License 0029 % along with SuperSegger. If not, see <http://www.gnu.org/licenses/>. 0030 0031 image = license('test', 'image_toolbox'); 0032 statistics = license('test', 'Statistics_Toolbox'); 0033 neural = license('test', 'Neural_Network_Toolbox'); 0034 optim = license('test', 'Optimization_Toolbox'); 0035 glob_optim = license('test', 'gads_toolbox'); 0036 0037 0038 pass = image && statistics && neural && optim && glob_optim; 0039 0040 if (~image) 0041 disp ('Please install the image toolbox'); 0042 end 0043 0044 if (~statistics) 0045 disp ('Please install the statistics toolbox'); 0046 end 0047 0048 if (~neural) 0049 disp ('Please install the neural network toolbox'); 0050 end 0051 0052 if (~optim) 0053 disp ('Please install the optimization toolbox'); 0054 end 0055 0056 if (~glob_optim) 0057 disp ('Please install the global optimization toolbox'); 0058 end 0059 0060 end