Mercurial > hg > smallbox
comparison 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 |
comparison
equal
deleted
inserted
replaced
245:96d17e5dc5d3 | 246:cef4500b936f |
---|---|
419 catch | 419 catch |
420 warning('Could not compile Rice Wavelet Toolbox MEX interfaces.\n'); | 420 warning('Could not compile Rice Wavelet Toolbox MEX interfaces.\n'); |
421 end | 421 end |
422 cd(SMALL_path); | 422 cd(SMALL_path); |
423 end | 423 end |
424 | |
425 %% UnlocBox setup | |
426 if ~exist('init_unlocbox.m','file') | |
427 fprintf('\n ******************************************************************'); | |
428 fprintf('\n\n Initialising UNLocBox Setup'); | |
429 | |
430 try | |
431 UNL_path = [pwd,FS,'toolboxes',FS,'UNLocBox']; | |
432 if exist([UNL_path, FS, 'toolbox_lastest.zip'],'file'), | |
433 UNL_zip=[UNL_path, FS, 'toolbox_latest.zip']; | |
434 else | |
435 UNL_zip='http://wiki.epfl.ch/unlocbox/documents/toolbox_latest.zip'; | |
436 fprintf('\n\n Downloading toolbox, please be patient\n\n'); | |
437 end | |
438 unzip(UNL_zip,UNL_path); | |
439 UNL_p=genpath(UNL_path); | |
440 addpath(UNL_p); | |
441 fprintf('\n UNLocBox Installation Successful!\n'); | |
442 catch | |
443 fprintf('\n UNLocBox Installation Failed\n'); | |
444 cd(SMALL_path); | |
445 end | |
446 cd(SMALL_path); | |
447 else | |
448 fprintf('\n ******************************************************************'); | |
449 fprintf('\n\n UNLocBox is already installed'); | |
450 end | |
451 | |
424 %% | 452 %% |
425 fprintf('\n ******************************************************************'); | 453 fprintf('\n ******************************************************************'); |
426 fprintf('\n\n Initialising SMALLbox Examples Setup'); | 454 fprintf('\n\n Initialising SMALLbox Examples Setup'); |
427 | 455 |
428 % % Need to do a bit of temporary housekeeping first. | 456 % % Need to do a bit of temporary housekeeping first. |