comparison 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
comparison
equal deleted inserted replaced
199:751fa3bddd30 203:f3b6ddd2f04f
18 % License, or (at your option) any later version. See the file 18 % License, or (at your option) any later version. See the file
19 % COPYING included with this distribution for more information. 19 % COPYING included with this distribution for more information.
20 %% 20 %%
21 21
22 global SMALL_path 22 global SMALL_path
23
24 if (isempty(SMALL_path))
25 error('SMALL_learn:varChk', '\nSMALL_path variable is not set... Please run SMALLboxInit and try again.\n\nExiting now...\n');
26 end
23 27
24 if (DL.profile) 28 if (DL.profile)
25 fprintf('\nStarting Dictionary Learning %s... \n', DL.name); 29 fprintf('\nStarting Dictionary Learning %s... \n', DL.name);
26 end 30 end
27 31