2012HackSessionNotes » History » Version 6

« Previous - Version 6/11 (diff) - Next » - Current version
Luis Figueira, 2012-06-20 04:09 PM
fixed style


2012 Hack Session Notes

Using SMALLbox Add-ons

These are the steps needed to interface SMALLbox add-ons to the core SMALLbox distribulation:

  1. Download the add-on distribution from: http://code.soundsoftware.ac.uk/projects/incoherentdl/files
    • The version you wish to download is version 1.1
    • unzip the downloaded file - this will create a folder named incoherentdl-v1_1
  2. Place the add-on code in any convenient location of your file system, and add this to your MATLAB path
    • addpath(genpath('{incoherentdl-v1_1}'))@
  3. Modify the relevant files in the folder {SMALLBox Root}/config/
    • modify or create {SMALLBox Root}/config/SMALL_learn_config_local.m
      • cp {SMALLBox Root}/config/SMALL_learn_local.m SMBOX/config/SMALL_learn_config_local.m
        • this local file is not tracked by Mercurial
        • if you need to revert to the default SMALLbox setting, you just need to delete/rename your local file
      • add the following code to the local config file:
        elseif strcmpi(DL.toolbox , 'SMALL_incoherentDL')
          DL=SMALL_incoherentDL ( Problem , DL ) ;
           % we need to make sure that columns are normalised to % unit lenght .
          for i = 1: size(DL.D,2)
            DL.D(: ,i)=DL.D(: ,i)/norm(DL.D(: ,i));
          end
          D = DL.D;
        
  4. Run the SMALLboxInit.m script to set environmental variables
  5. Run any function or script contained in the add-on.
    • example:
      • load test_mocod.mat
        • located in incoherentdl-v1_1/results/test_mocod.mat (but already in path)
      • open SMALL_test_mocod.m
        • located in incoherentdl-v1_1/open SMALL_test_mocod.m
      • run the code from the block that starts on line 110 (with the comment Plot Results)
        • this will display two coherence/signal to noise ratio plots based on results previously computed