Parsing a lot of data and then plotting it, dopamine in rat brains

1 visualizzazione (ultimi 30 giorni)
Hi I am doing research on dopamine levels/pulses in a rats brain. Carbon fiber electrodes are put into the brain and that acts as a sort of battery. There is a baseline voltage curve that is somewhat constant in the rats brain. When dopamine is release, the voltage spikes. By subtracting the baseline voltage from the data collected, you are able to see when dopamine is released. I have 16 channels going to the brain. Every tenth of a second, data is collected from the channels going 1 through 16 1 through 16 1 through 16 and so on. There is a high resolution clock that helps to time stamp the data collection. The environment in the rats brain is always changing, so a new baseline needs to be configured every 50 seconds or so. I have written code so it parses the 16 channels into separate matrices, but I need to subtract the data from a new baseline that is determined every 50 seconds.
After the data is collected I need to plot it, comparing it to a horizontal line of 0.6V. If I plot it all from left to right, then the graph would go on for miles, so I need the graph to plot from left to right for ~50 seconds then skip down below the plotted line and plot another right below it just the same for ~50 secs then plot another right below it for ~50 secs and keep doing this until it reaches 24hrs.
After 24 hrs of collecting data the data is about 20GB so its a hearty chunk of data. Please let me know if you have any insight on how to go about solving/writing this code. Especially the graphing part of it. Would also like to know if there is a toolbox that I could use to make this all easier. Thank you for your help
  6 Commenti
Patrick Lydon
Patrick Lydon il 20 Giu 2017
So I tried plotting my data in a waterfall plot (I will attach a picture of the plot). There are a lot of vertical lines, I would like it to be smooth and make a nice wave-like look. How do I do this?
dpb
dpb il 21 Giu 2017
I'm having hard time wrapping head around this, sorry... :)
There seems to be two disparate times here...I'm having trouble understanding where the 2D arrays come from for each channel; my simple-minding thinking says there ought to a a waveform of T/dT samples for each of 16 channels from some initial T0. What am I missing?
I'm trying to figure out who to plot against whom to be comparing the evolution of the same waveform with time or the various channels over a given time. It seems there's an extra dimension here I'm not following.

Accedi per commentare.

Risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by