BC_mainWhiteNoise.m 1.5 KB

1234567891011121314151617181920212223242526
  1. %Guide for performing a linear-nonlinear model (LN-model)
  2. %analysis from voltage recordings of bipolar cells (BC) under spatiotemporal white noise
  3. %Check out the Documentation_Data.pdf, which contains relevant information
  4. %for analysing the white noise stimulus
  5. %check also the paper from Chichilnisky, E.J. (2001). 'A simple white noise
  6. %analysis of neuronal light responses', Network, 12, 199-213.
  7. %it explains the LN-model for spiking neurons nicely! Here we adapted this
  8. %method to non-spiking neurons (continous voltage signal).
  9. clear;
  10. close all;
  11. %% First LN-Model Component: Filter (spatiotemporal receptive field =STA)
  12. loadData='Z:\spatiotemporalWhiteNoise\'; %path of the BC files for spatiotemporal white noise (has to be adapted to your own path)
  13. filename='155200029Comp.mat'; %BC file to analyse: for example here we use file 155200029Comp from cell 2, recorded in retina 1 on 150520
  14. pixelSize=12; %is given in the excel file LogInfo_SpatioTemporalWhiteNoise.xlsx for the corresponding cell
  15. seed=-10000; %see also documention_data.pdf
  16. Hz=10; % given in the excel file LogInfo_SpatioTemporalWhiteNoise.xlsx for the corresponding cell (update rate)
  17. [STA_output]=BC_STA(loadData,filename,pixelSize,seed,Hz);%example code receptive field analysis=linear filter
  18. %% Second LN-Model Component: Output nonlinearity
  19. [NL_output]=BC_NL(STA_output);%example code output nonlinearity analysis
  20. %% Prediction of the response with the LN-Model (filter and output nonlinearity):
  21. [pred_output]=BC_pred(STA_output);%example code prediction