comparison util/SMALL_plot.m @ 32:6521a7c2b93c

(none)
author idamnjanovic
date Tue, 29 Jun 2010 11:07:35 +0000
parents fc395272d53e
children 62f20b91d870
comparison
equal deleted inserted replaced
31:1b63e6a201a2 32:6521a7c2b93c
18 m=size(SMALL.solver,2); 18 m=size(SMALL.solver,2);
19 n=size(SMALL.solver(1).reconstructed,2)+1; 19 n=size(SMALL.solver(1).reconstructed,2)+1;
20 for i =1:m 20 for i =1:m
21 21
22 subplot(m,n, (i-1)*n+1); plot(1:length(SMALL.solver(i).solution), SMALL.solver(i).solution, 'b') 22 subplot(m,n, (i-1)*n+1); plot(1:length(SMALL.solver(i).solution), SMALL.solver(i).solution, 'b')
23 title([ SMALL.solver(i).name,'(', SMALL.solver(i).param,')']) 23 title(sprintf('%s(%s) in %.2f s', SMALL.solver(i).name, SMALL.solver(i).param,SMALL.solver(i).time))
24 xlabel('Coefficient') 24 xlabel('Coefficient')
25 25
26 % Plot reconstructed signal against original 26 % Plot reconstructed signal against original
27 27
28 28
30 30
31 subplot(m,n,(i-1)*n+j); plot(1:length(SMALL.solver(i).reconstructed(:,j-1)), SMALL.solver(i).reconstructed(:,j-1) ,'b.-', 1:length(SMALL.Problem.signal(:,j-1)), SMALL.Problem.signal(:,j-1),'r--') 31 subplot(m,n,(i-1)*n+j); plot(1:length(SMALL.solver(i).reconstructed(:,j-1)), SMALL.solver(i).reconstructed(:,j-1) ,'b.-', 1:length(SMALL.Problem.signal(:,j-1)), SMALL.Problem.signal(:,j-1),'r--')
32 %legend(SMALL.solver(i).name,'Original signal',0); 32 %legend(SMALL.solver(i).name,'Original signal',0);
33 title('Reconstructed and original signals'); 33 title('Reconstructed and original signals');
34 end 34 end
35 end
35 end 36 end