Mercurial > hg > smallbox
diff util/SMALL_learn.m @ 203:f3b6ddd2f04f luisf_dev
checks if the variable SMALL_path exists, and exits otherwise.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Tue, 20 Mar 2012 15:52:22 +0000 |
parents | 751fa3bddd30 |
children | a986ee86651e |
line wrap: on
line diff
--- a/util/SMALL_learn.m Tue Mar 20 14:28:51 2012 +0000 +++ b/util/SMALL_learn.m Tue Mar 20 15:52:22 2012 +0000 @@ -21,6 +21,10 @@ global SMALL_path +if (isempty(SMALL_path)) + error('SMALL_learn:varChk', '\nSMALL_path variable is not set... Please run SMALLboxInit and try again.\n\nExiting now...\n'); +end + if (DL.profile) fprintf('\nStarting Dictionary Learning %s... \n', DL.name); end