BC_mainPatternedSpot.asv 1.6 KB

123456789101112131415161718192021222324252627282930
  1. %Guide for the patterned spot analysis
  2. %Check out the Documentation_Data.pdf, which contains relevant information
  3. %for analysing the patterned stimulus
  4. clear;
  5. close all;
  6. %% Do the patterned spot analysis
  7. loadData='Z:\Manuscript\BC_XY_LN\Puplishing\DataAvailable\Spot\'; %path of the BC files for patterned spot (has to be adapted to your own path)
  8. filename='18d130037Comp.mat'; %BC file to analyse: for example here we use file 16422006Comp from cell 1, recorded in retina 2 on 160422
  9. Hz=1; % given in the excel file LogInfo_PatternedSpot.xlsx for the corresponding file
  10. %the input frames you need, this part depends on whether you record with
  11. %stimulus version 1 or 2 get the start and end points of each patterned spot from LogInfo_PatternedSpot.xlsx.
  12. %% stimulus version 1
  13. start_halfSpot=51; end_halfSpot=57;
  14. start_quarterSpot=59; end_quarterSpot=65;
  15. start_25microSpot=75; end_25microSpot=81;
  16. inputFrames=[start_halfSpot,end_halfSpot,start_quarterSpot,end_quarterSpot,...
  17. start_25microSpot,end_25microSpot];
  18. % %% stim version 2
  19. % start_halfSpot=234; end_halfSpot=240;
  20. % start_quarterSpot=243; end_quarterSpot=249;
  21. % start_25microSpot=252; end_25microSpot=258;
  22. % start_10microSpot=261; end_10microSpot=267;
  23. % start_UniformSpot=225; end_UniformSpot=231;
  24. % inputFrames=[start_halfSpot,end_halfSpot,start_quarterSpot,end_quarterSpot,...
  25. % start_25microSpot,end_25microSpot,start_10microSpot,end_10microSpot,...
  26. % start_UniformSpot,end_UniformSpot];
  27. [patternedSpot_output]=BC_patternedSpot(loadData,filename,Hz,inputFrames);%example code to analyse the patterned spot responses