comparison SMALLboxSetup.m @ 78:f69ae88b8be5

added Rice Wavelet Toolbox with my modification, so it can be compiled on newer systems.
author Ivan Damnjanovic lnx <ivan.damnjanovic@eecs.qmul.ac.uk>
date Fri, 25 Mar 2011 15:27:33 +0000
parents 165e3b249170
children 16df822019f1
comparison
equal deleted inserted replaced
76:d052ec5b742f 78:f69ae88b8be5
101 else 101 else
102 fprintf(['\nWarning: CurveLab is not in the path. Sparco Problems 50-51 ' ... 102 fprintf(['\nWarning: CurveLab is not in the path. Sparco Problems 50-51 ' ...
103 'will not work.\n\n']); 103 'will not work.\n\n']);
104 end 104 end
105 105
106 cd([Sparco_path, FS, 'sparco-1.2', FS, 'tools' ,FS, 'rwt']) 106
107 fprintf('Compiling the Rice Wavelet Toolbox MEX interfaces...'); 107 cd(SMALL_path);
108 try 108 fprintf('SPARCO Installation Successful!\n');
109 if exist('mdwt' ,'file')~=3, mex mdwt.c mdwt_r.c; end
110 if exist('midwt' ,'file')~=3, mex midwt.c midwt_r.c; end
111 if exist('mrdwt' ,'file')~=3, mex mrdwt.c mrdwt_r.c; end
112 if exist('mirdwt','file')~=3, mex mirdwt.c mirdwt_r.c; end
113 fprintf('SPARCO Installation Successful!\n');
114 catch
115 warning('Could not compile Rice Wavelet Toolbox MEX interfaces.');
116 end
117 cd(SMALL_path);
118 else 109 else
119 fprintf('\n ******************************************************************'); 110 fprintf('\n ******************************************************************');
120 fprintf('\n\n SPARCO and Rice Wavelet Toolbox are already installed'); 111 fprintf('\n\n SPARCO and Rice Wavelet Toolbox are already installed');
121 end 112 end
122 %% 113 %%
352 else 343 else
353 fprintf('\n ******************************************************************'); 344 fprintf('\n ******************************************************************');
354 fprintf('\n\n matlab_midi (http://www.kenschutte.com/midi/) is already installed'); 345 fprintf('\n\n matlab_midi (http://www.kenschutte.com/midi/) is already installed');
355 end 346 end
356 347
357 cd([pwd,FS,'util',FS,'ksvd utils']); 348 cd([SMALL_path,FS,'util',FS,'ksvd utils']);
358 make 349 make
359 cd(SMALL_path); 350 cd(SMALL_path);
360 %% 351 %%
361 352 cd([SMALL_path, FS, 'util', FS, 'Rice Wavelet Toolbox'])
353 fprintf('Compiling the Rice Wavelet Toolbox MEX interfaces...');
354 try
355 if exist('mdwt' ,'file')~=3, mex mdwt.c; end
356 if exist('midwt' ,'file')~=3, mex midwt.c; end
357 if exist('mrdwt' ,'file')~=3, mex mrdwt.c; end
358 if exist('mirdwt','file')~=3, mex mirdwt.c; end
359 fprintf('Rice Wavelet Toolbox Installation Successful!\n\n');
360 catch
361 warning('Could not compile Rice Wavelet Toolbox MEX interfaces.\n');
362 end
363 cd(SMALL_path);
362 364
363 fprintf('\n ******************************************************************'); 365 fprintf('\n ******************************************************************');
364 fprintf('\n\n Initialising SMALLbox Examples Setup'); 366 fprintf('\n\n Initialising SMALLbox Examples Setup');
365 367
366 % Need to do a bit of temporary housekeeping first. 368 % % Need to do a bit of temporary housekeeping first.
367 cd(SMALL_path); 369 % cd(SMALL_path);
368 try 370 % try
369 cd(['Problems',FS,'private']); 371 % cd(['Problems',FS,'private']);
370 if exist('addtocols' ,'file')~=3, 372 % if exist('addtocols' ,'file')~=3,
371 fprintf('\n Compiling MEX interfaces for SMALL examples \n'); 373 % fprintf('\n Compiling MEX interfaces for SMALL examples \n');
372 make; 374 % make;
373 end 375 % end
374 fprintf('\n SMALLbox Problems Installation Successful! \n'); 376 % fprintf('\n SMALLbox Problems Installation Successful! \n');
375 catch 377 % catch
376 fprintf('\n SMALLbox Problems Installation Failed \n'); 378 % fprintf('\n SMALLbox Problems Installation Failed \n');
377 end 379 % end
378 cd(SMALL_path); 380 % cd(SMALL_path);
379 381
380 382
381 383
382 fprintf('\n ******************************************************************'); 384 fprintf('\n ******************************************************************');
383 fprintf('\n\n SMALLbox Installation Complete!'); 385 fprintf('\n\n SMALLbox Installation Complete!');