We’re recording from a mechanosensory neuron that might fire spikes when we stimulate it at certain frequencies.

computer science

Description

For this problem set, please submit .m or .mlx files with the code you used to solve these problems. If the problem asks for a number answer at the end of the problem, write that number in a comment after the code. Example:

1. We’re recording from a mechanosensory neuron that might fire spikes when we stimulate it at certain frequencies. We want to test it by stimulating it with sine waves at several different frequencies and recording spikes in the neuron. To do this, we need to send instructions (voltages) to a motor that will stimulate the neuron by oscillating it up and down. The motor can accept voltages between 0 (all the way down) and 5V (all the way up). Make a vector that will oscillate the mechanosensor 40 times (40 sine wave cycles) at a frequency of every 5Hz between 1 and 150 Hz (1, 5, 10, 15… 145, 150). Your motor can receive instructions at a rate of 10kHz, or 10,000 samples per second. Use zeros to add 100 ms of rest in between each frequency. Plot the stimulus. If we play this stimulus through motor to our oscillate our mechanosensor, how long will the experiment take? Turn in a script that makes this stimulus vector. 


2. Now that we’ve designed the stimulus, let’s look at some data from a real cell. The data in the files on the website are spike times and stimulus peak times for an experiment like the one you wrote in Question 1. The raw recording looks something like this

Instruction Files

Related Questions in computer science category