diff --git a/usedMcode/noOfSynergies.m b/usedMcode/noOfSynergies.m index 7c5d5ff..761158e 100644 --- a/usedMcode/noOfSynergies.m +++ b/usedMcode/noOfSynergies.m @@ -65,24 +65,26 @@ end if showFigure + legendNames=EMGChannels; + legendNames{size(EMGChannels,2)+1}='mean'; fig=figure(); subplot(1,3,1); plot([r2Autoenc,mean(r2Autoenc,2)]) - legend(['1st.';'2nd.';'3rd.';'4th.';'5th.';'6th.';'mean'],'Location','SouthEast') + legend(legendNames','Location','SouthEast') title('Autoencoder') xlabel('number of syergies') ylabel('R^2') subplot(1,3,2); plot([r2PCA,mean(r2PCA,2)]) - legend(['1st.';'2nd.';'3rd.';'4th.';'5th.';'6th.';'mean'],'Location','SouthEast') + legend(legendNames','Location','SouthEast') title('PCA') xlabel('number of syergies') ylabel('R^2') subplot(1,3,3); plot([r2NNMF,mean(r2NNMF,2)]) - legend(['1st.';'2nd.';'3rd.';'4th.';'5th.';'6th.';'mean'],'Location','SouthEast') + legend(legendNames','Location','SouthEast') title('NNMF') xlabel('number of syergies') ylabel('R^2')