Fig1E.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. %% Figure 1E - dprime
  2. %
  3. clear all
  4. close all
  5. %%
  6. %Inital learning
  7. dprime_Ini = [-0.401 -0.588 1.290 3.162 3.895 3.805]; %Initial
  8. %Reversal learning
  9. dprime_Rev = [-0.767 -0.338 1.548 2.599 2.183]; %Reversal
  10. for iLearning = 1:2
  11. switch iLearning
  12. case 1
  13. figure('Name', ['Initial_Taskperfrmance'])
  14. set(gcf,'Position',[100 100 210 350])
  15. dprime = dprime_Ini;
  16. FigTitle = 'Initial';
  17. case 2
  18. figure('Name', ['Reversal_Taskperfrmance'])
  19. set(gcf,'Position',[100 100 210 350])
  20. dprime = dprime_Rev;
  21. FigTitle = 'Reversal';
  22. end
  23. plot(dprime, '-o', 'color',[0.25 0.85 0.25],'MarkerFaceColor',[0.25 0.85 0.25]);
  24. hline(1.5);
  25. NofSession = size(dprime,2);
  26. xlim([0 NofSession+1]);
  27. ylim ([-1 4.5]);
  28. NofXticks = 1:1:NofSession;
  29. xticks(NofXticks);
  30. yticks([-1 0 1 2 3 4]);
  31. title(FigTitle);
  32. xlabel('Session')
  33. ylabel('Task performance')
  34. ax = gca;
  35. ax.FontSize = 12;
  36. set(ax, {'ycolor'},{'k'})
  37. box off
  38. end %for iLearning