Browse Source

update functions

Helene Schreyer 3 years ago
parent
commit
8ff3f5725c

+ 0 - 18
spatiotemporalWhiteNoise/code spatiotemporal white noise/avgPerFrame.m

@@ -1,18 +0,0 @@
-function [membranPotAVG]=avgPerFrame ...
-        (membranePot,ttls_ms)
-%function [frelated_membranPotAVGDEV]=sharpEL_buildAveragePerFrame ...
-%         (membranePot,ttls_ms_correctedPulse)
-%builds the average membrane potential between frames for the white noise
-%or natural movie -> same principle for frozen frames
-% INPUT:        membranePos -> membrane Potential
-%               ttls_ms -> pulses in ms
-% OUTPUT:       membranPotAVG -> average membrane potential per frames
-
-membranPotAVG=zeros(1,length(ttls_ms)-1);%preallocate
-
-%make the average membrane potential between two stimulus frames
-for jj=1:length(ttls_ms)-1 
-    membranPotAVG(jj)=mean(membranePot(ttls_ms(jj) ...
-        :(ttls_ms(jj+1)-1)));%detail: -1ms because the next ms is already the start of the new stimulus frame
-end
-end