BC_mainNaturalMovies.m 1.3 KB

12345678910111213141516171819
  1. %Guide for performing a linear-nonlinear model (LN-model)
  2. %analysis from voltage recordings of bipolar cells (BC) under natural
  3. %stimuli
  4. %Check out the Documentation_Data.pdf, which contains relevant information
  5. %Check BC_mainWhiteNoise.m -> from here you get the filter and output
  6. %nonlinearity for performing the prediction to the movie.
  7. clear;
  8. close all;
  9. %% Preprocessing of the natural movie contrast signal
  10. loadData='Z:\naturalMovies\'; %path of the BC files for natural movies (has to be adapted to your own path)
  11. filename='16d200016Comp.mat'; %BC file to analyse: for example here we use file 16d200016Comp from cell 5, recorded in retina 2 on 161219
  12. Hz=25; % given in the excel file LogInfo_NaturalMovies.xlsx for the corresponding file
  13. movienbr=4; %given in the excel file LogInfo_NaturalMovies.xlsx for the corresponding file
  14. pixelSize=9; %given in the excel file LogInfo_SpatioTemporalWhiteNoise.xlsx from the white noise stimulus of the corresponding cell
  15. [movieSignal]=BC_getNaturalMovies(pixelSize);%example code to preprocess the natural movies
  16. %% Prediction of the response to the movie from the LN-model with spatiotemporal white noise
  17. [naturalMovie_output]=BC_predNaturalMovies(loadData,filename,movieSignal,STA_output,NL_output,Hz);%example code to get the prediction to natural movies from the spatiotemporal white noise LN-model