plots.m 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. % Author : F. Yahaya
  2. % Date: 06/09/2018
  3. % Contact: farouk.yahaya@univ-littoral.fr
  4. clear
  5. clc
  6. Total_Tests=40;
  7. mat_size='500x500'; % this is just for naming. To change matrix size, open the "data_simulation.m" file and change
  8. % your mxn matrix size as desired.
  9. for i=1:Total_Tests
  10. load(['output/RSI_NeNMF_',mat_size,'_',int2str(i),'.mat'] , 'RRE_RSI_NeNMF', 'T_RSI_NeNMF')
  11. % load(['output/RPI_',mat_size,'_',int2str(i),'.mat'] , 'RRE_RPI','T_RPI' )
  12. load(['output/vanilla_NeNMF_',mat_size,'_',int2str(i),'.mat'] , 'RRE_VANILLA_NeNMF', 'T_VANILLA_NeNMF' )
  13. rRE_RSI_NeNMF(i,:) = RRE_RSI_NeNMF;
  14. t_RSI_NeNMF(i,:) = T_RSI_NeNMF;
  15. % rRE_RPI(i,:) = RRE_RPI;
  16. % t_RPI(i,:) = T_RPI;
  17. rRE_VANILLA_NeNMF(i,:) = RRE_VANILLA_NeNMF;
  18. t_VANILLA_NeNMF(i,:) = T_VANILLA_NeNMF;
  19. end
  20. figure,
  21. subplot(211)
  22. semilogy(t_VANILLA_NeNMF',rRE_VANILLA_NeNMF','b')
  23. hold on, semilogy(t_RSI_NeNMF',rRE_RSI_NeNMF','r')
  24. axis([0 15 1e-4 1.01])
  25. xlabel('CPU time (s)')
  26. ylabel('RRE')
  27. subplot(212), semilogy([0:length(t_VANILLA_NeNMF)-1],rRE_VANILLA_NeNMF','b')
  28. hold on, semilogy([0:length(t_RSI_NeNMF)-1],rRE_RSI_NeNMF','r')
  29. axis([0 40 1e-4 1.01])
  30. xlabel('Iterations')
  31. ylabel('RRE')