comparison util/SMALL_learn.m @ 216:a986ee86651e luisf_dev

Calls SMALLboxInit in the beginning of both solve and learn, in order not to lose the SMALL_path variable.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Thu, 22 Mar 2012 11:41:04 +0000
parents f3b6ddd2f04f
children fd0b5d36f6ad 198d4d9cee74
comparison
equal deleted inserted replaced
215:f0552f962930 216:a986ee86651e
17 % published by the Free Software Foundation; either version 2 of the 17 % published by the Free Software Foundation; either version 2 of the
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 SMALLboxInit
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
27 23
28 if (DL.profile) 24 if (DL.profile)
29 fprintf('\nStarting Dictionary Learning %s... \n', DL.name); 25 fprintf('\nStarting Dictionary Learning %s... \n', DL.name);
30 end 26 end
31 27