-
We prepared a zero-array with the length of the samples within the given duration for each train. We iterate through each index in firing_sample and point at the index. From that point, we go through the action potential and add correspondingly to each step (We slice the array and copy the whole action potential in place).
-
How many samples do each action potential train contain? Why? We expect a well-reasoned answer based on the theories discussed in class.
Each action potential train contains 200.000 samples. This is due to the duration of the signal (20s), and our sample rate().
-
Plot 1 of the 8 action potential trains as a function of time (therefore you should have 0-20 s in the time axis). In addition, plot the same action potential train in the time interval 10-10.5 s. Note: All axes must be labelled. The unit for the time axis should be s (seconds); the unit for the amplitude of the action potentials is not provided and you should indicate A.U. (which stands for arbitrary unit).
-
Comment on the procedure you have followed to obtain the proper time axis. We expect a well-reasoned answer based on the theories discussed in class.
We calculated that within these 20s signal duration, will contain 200.000 samples. We assume that these samples are evenly distributed withing this time frame. In order to get the interval, we multiply the time range with our sample rate.