comparison util/SMALL_plot.m @ 1:7750624e0c73 version0.5

(none)
author idamnjanovic
date Thu, 05 Nov 2009 16:36:01 +0000
parents
children 33850553b702
comparison
equal deleted inserted replaced
0:5181bee80bc1 1:7750624e0c73
1 function SMALL_plot(SMALL)
2 % Ivan Damnjanovic 2009
3 % Function gets as input SMALL structure and plots the solution and
4 % reconstructed signal
5
6 figure;
7
8 plot(1:length(SMALL.solver.solution), SMALL.solver.solution, 'b');
9 title(['Coefficients of the reconstructed signal using ', SMALL.solver.name, ' with parameters ', SMALL.solver.param])
10 xlabel('Coefficient')
11
12 % Use SMALL.solution to reconstruct the signal.
13
14 % Plot reconstructed signal against original
15
16
17 for i=1:size(SMALL.solver.reconstructed,2)
18 figure;
19 plot(1:length(SMALL.solver.reconstructed(:,i)), SMALL.solver.reconstructed(:,i) ,'b.-', 1:length(SMALL.Problem.signal(:,i)), SMALL.Problem.signal(:,i),'r--');
20 legend(SMALL.solver.name,'Original signal');
21 title('Reconstructed and original signals');
22 end
23 end