MATLAB SCRIPT: hw2p2.m
The total spike count decreases with increasing frequency because, for a fixed stimulus amplitude, higher frequency stimuli result in a smaller changes in membrane voltage, which results in fewer spikes in the same time interval. This is related to the lowpass filtering property of the RC membrane which is discussed in the next problem.