comparison examples/SMALL_solver_test_Audio.m @ 5:f44689e95ea4

(none)
author idamnjanovic
date Mon, 22 Mar 2010 10:43:01 +0000
parents 7750624e0c73
children cbf3521c25eb
comparison
equal deleted inserted replaced
4:2d7d8736ce6c 5:f44689e95ea4
49 49
50 global SMALL 50 global SMALL
51 SMALL.Problem = generateProblem(402,'show'); 51 SMALL.Problem = generateProblem(402,'show');
52 %% 52 %%
53 53
54 i=1;
54 %% 55 %%
55 % SMALL Conjugate Gradient test 56 % SMALL Conjugate Gradient test
56 57
57 SMALL.solver.toolbox='SMALL'; 58 SMALL.solver(i)=SMALL_init_solver;
58 SMALL.solver.name='SMALL_cgp'; 59 SMALL.solver(i).toolbox='SMALL';
60 SMALL.solver(i).name='SMALL_cgp';
59 61
60 % In the following string all parameters except matrix, measurement vector 62 % In the following string all parameters except matrix, measurement vector
61 % and size of solution need to be specified. If you are not sure which 63 % and size of solution need to be specified. If you are not sure which
62 % parameters are needed for particular solver type "help <Solver name>" in 64 % parameters are needed for particular solver type "help <Solver name>" in
63 % MATLAB command line 65 % MATLAB command line
64 66
65 SMALL.solver.param='1500, 1e-14'; 67 SMALL.solver(i).param='1500, 1e-14';
66 68
67 SMALL=SMALL_solve(SMALL); 69 SMALL.solver(i)=SMALL_solve(SMALL.Problem, SMALL.solver(i));
68 70
69 71
70 SMALL_plot(SMALL); 72 i=i+1;
71 SMALL_playAudio(SMALL);
72
73 %% 73 %%
74 % SolveOMP from SparseLab test 74 % SolveOMP from SparseLab test
75 75
76 SMALL.solver.toolbox='SparseLab'; 76 SMALL.solver(i)=SMALL_init_solver;
77 SMALL.solver.name='SolveBP'; 77 SMALL.solver(i).toolbox='SparseLab';
78 SMALL.solver(i).name='SolveBP';
78 79
79 % In the following string all parameters except matrix, measurement vector 80 % In the following string all parameters except matrix, measurement vector
80 % and size of solution need to be specified. If you are not sure which 81 % and size of solution need to be specified. If you are not sure which
81 % parameters are needed for particular solver type "help <Solver name>" in 82 % parameters are needed for particular solver type "help <Solver name>" in
82 % MATLAB command line 83 % MATLAB command line
83 84
84 SMALL.solver.param='10'; 85 SMALL.solver(i).param='10';
85 86
86 SMALL=SMALL_solve(SMALL); 87 SMALL.solver(i)=SMALL_solve(SMALL.Problem, SMALL.solver(i));
87 88
88 SMALL_plot(SMALL); 89 SMALL_plot(SMALL);
89 SMALL_playAudio(SMALL); 90 SMALL_playAudio(SMALL);
90 %% 91 %%
91 92