changeset 243:1fbd28dfb99e unlocbox

setup file
author bmailhe
date Wed, 29 Aug 2012 10:39:14 +0100
parents b1db9e090542
children 5c8bcdadb380
files SMALLboxSetup.m examples/AudioInpainting/Audio_Declipping_Example.m examples/AudioInpainting/CVX_add_const_Audio_declipping.m
diffstat 3 files changed, 31 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/SMALLboxSetup.m	Wed Apr 18 18:12:15 2012 +0100
+++ b/SMALLboxSetup.m	Wed Aug 29 10:39:14 2012 +0100
@@ -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');
--- a/examples/AudioInpainting/Audio_Declipping_Example.m	Wed Apr 18 18:12:15 2012 +0100
+++ b/examples/AudioInpainting/Audio_Declipping_Example.m	Wed Aug 29 10:39:14 2012 +0100
@@ -49,7 +49,7 @@
 
 %   Defining the Problem structure
 
-SMALL.Problem = generateAudioDeclippingProblem('male01_8kHz', 0.6, 256, 0.5, @wRect, @wSine, @wRect, @Gabor_Dictionary, 2);
+SMALL.Problem = generateAudioDeclippingProblem('male01_8kHz', 0.1, 256, 0.5, @wRect, @wSine, @wRect, @Gabor_Dictionary, 2);
 
 for idxSolver = 1:4
     
--- a/examples/AudioInpainting/CVX_add_const_Audio_declipping.m	Wed Apr 18 18:12:15 2012 +0100
+++ b/examples/AudioInpainting/CVX_add_const_Audio_declipping.m	Wed Aug 29 10:39:14 2012 +0100
@@ -56,7 +56,7 @@
             cvx_begin
             cvx_quiet(true)
             variable solution(j)
-            minimize(norm(Dict(:,idxCoeff)*solution-xObs))
+            minimize(norm(Dict(:,idxCoeff)*solution-signal))
             cvx_end
         end
     else
@@ -75,7 +75,7 @@
             cvx_begin
             cvx_quiet(true)
             variable solution(j)
-            minimize(norm(Dict(:,idxCoeff)*solution-xObs))
+            minimize(norm(Dict(:,idxCoeff)*solution-signal))
             cvx_end
         end
     end