comparison SMALLboxSetup.m @ 243:1fbd28dfb99e unlocbox

setup file
author bmailhe
date Wed, 29 Aug 2012 10:39:14 +0100
parents 609dc3345ef0
children cef4500b936f
comparison
equal deleted inserted replaced
231:b1db9e090542 243:1fbd28dfb99e
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.