Mercurial > hg > smallbox
comparison examples/Pierre Villars/Pierre_Villars_Example.m @ 217:8b3c71bb44eb luisf_dev
Removed "clear all" from example scripts (subs by "clear" instead)
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 22 Mar 2012 14:41:04 +0000 |
parents | f42aa8bcb82f |
children |
comparison
equal
deleted
inserted
replaced
216:a986ee86651e | 217:8b3c71bb44eb |
---|---|
17 % License, or (at your option) any later version. See the file | 17 % License, or (at your option) any later version. See the file |
18 % COPYING included with this distribution for more information. | 18 % COPYING included with this distribution for more information. |
19 % | 19 % |
20 %% | 20 %% |
21 | 21 |
22 clear all; | 22 clear; |
23 | 23 |
24 % Defining the Problem structure | 24 % Defining the Problem structure |
25 | 25 |
26 SMALL.Problem = generatePierreProblem(); | 26 SMALL.Problem = generatePierreProblem(); |
27 | 27 |
42 dictsize=zeros(1,n); | 42 dictsize=zeros(1,n); |
43 time = zeros(1,n); | 43 time = zeros(1,n); |
44 psnr = zeros(1,n); | 44 psnr = zeros(1,n); |
45 | 45 |
46 for i=1:n | 46 for i=1:n |
47 | |
48 | |
49 % Set reconstruction function | 47 % Set reconstruction function |
50 | 48 |
51 SMALL.Problem.reconstruct=@(x) Pierre_reconstruct(x, SMALL.Problem); | 49 SMALL.Problem.reconstruct=@(x) Pierre_reconstruct(x, SMALL.Problem); |
52 | |
53 | |
54 | 50 |
55 % Defining the parameters sparse representation | 51 % Defining the parameters sparse representation |
56 SMALL.solver(i)=SMALL_init_solver; | 52 SMALL.solver(i)=SMALL_init_solver; |
57 SMALL.solver(i).toolbox='SMALL'; | 53 SMALL.solver(i).toolbox='SMALL'; |
58 SMALL.solver(i).name='SMALL_MP'; | 54 SMALL.solver(i).name='SMALL_MP'; |