Mercurial > hg > smallbox
diff SMALLboxSetup.m @ 246:cef4500b936f ver_2.1
Merge
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 31 Oct 2012 12:10:13 +0000 |
parents | 96d17e5dc5d3 1fbd28dfb99e |
children |
line wrap: on
line diff
--- a/SMALLboxSetup.m Wed Oct 31 11:53:07 2012 +0000 +++ b/SMALLboxSetup.m Wed Oct 31 12:10:13 2012 +0000 @@ -421,6 +421,34 @@ end cd(SMALL_path); end + +%% UnlocBox setup +if ~exist('init_unlocbox.m','file') + fprintf('\n ******************************************************************'); + fprintf('\n\n Initialising UNLocBox Setup'); + + try + UNL_path = [pwd,FS,'toolboxes',FS,'UNLocBox']; + if exist([UNL_path, FS, 'toolbox_lastest.zip'],'file'), + UNL_zip=[UNL_path, FS, 'toolbox_latest.zip']; + else + UNL_zip='http://wiki.epfl.ch/unlocbox/documents/toolbox_latest.zip'; + fprintf('\n\n Downloading toolbox, please be patient\n\n'); + end + unzip(UNL_zip,UNL_path); + UNL_p=genpath(UNL_path); + addpath(UNL_p); + fprintf('\n UNLocBox Installation Successful!\n'); + catch + fprintf('\n UNLocBox Installation Failed\n'); + cd(SMALL_path); + end + cd(SMALL_path); +else + fprintf('\n ******************************************************************'); + fprintf('\n\n UNLocBox is already installed'); +end + %% fprintf('\n ******************************************************************'); fprintf('\n\n Initialising SMALLbox Examples Setup');