new figures
This commit is contained in:
parent
d799c2b4cf
commit
66193d0429
@ -24,6 +24,7 @@ ylabel('firing rate [Hz]')
|
|||||||
ylim([0 300])
|
ylim([0 300])
|
||||||
xlim([0 1])
|
xlim([0 1])
|
||||||
title('instanataneous firing rate')
|
title('instanataneous firing rate')
|
||||||
|
saveas(fig, 'isi.pdf','pdf')
|
||||||
|
|
||||||
%% create PSTH using the binning method
|
%% create PSTH using the binning method
|
||||||
bin_width = 0.0125; % s
|
bin_width = 0.0125; % s
|
||||||
@ -49,7 +50,7 @@ xlim([0 1])
|
|||||||
xlabel('time [s]')
|
xlabel('time [s]')
|
||||||
ylabel('firing rate [Hz]')
|
ylabel('firing rate [Hz]')
|
||||||
title('binning method')
|
title('binning method')
|
||||||
|
saveas(fig, 'binning.pdf', 'pdf')
|
||||||
%% create PSTH using the kernel-convolution method
|
%% create PSTH using the kernel-convolution method
|
||||||
kernel_width = 0.0125; %s
|
kernel_width = 0.0125; %s
|
||||||
binary_spikes = zeros(size(times,2), round(max_time*sample_rate));
|
binary_spikes = zeros(size(times,2), round(max_time*sample_rate));
|
||||||
|
BIN
programming/lectures/images/binning.pdf
Normal file
BIN
programming/lectures/images/binning.pdf
Normal file
Binary file not shown.
BIN
programming/lectures/images/conv.pdf
Normal file
BIN
programming/lectures/images/conv.pdf
Normal file
Binary file not shown.
BIN
programming/lectures/images/isi.pdf
Normal file
BIN
programming/lectures/images/isi.pdf
Normal file
Binary file not shown.
662
programming/lectures/images/sta.pdf
Normal file
662
programming/lectures/images/sta.pdf
Normal file
File diff suppressed because one or more lines are too long
@ -137,6 +137,42 @@
|
|||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{frame} [fragile]
|
||||||
|
\frametitle{Graphische Darstellung von Daten}
|
||||||
|
\framesubtitle{Ver\"andern von Eigenschaften \"uber die Kommandozeile}
|
||||||
|
\vspace{-0.75em}
|
||||||
|
\scriptsize
|
||||||
|
\begin{lstlisting}
|
||||||
|
fig = figure();
|
||||||
|
set(gcf, 'PaperUnits', 'centimeters', 'PaperSize', [11.7 9.0]);
|
||||||
|
set(gcf, 'PaperPosition',[0.0 0.0 11.7 9.0], 'Color', 'white')
|
||||||
|
hold on
|
||||||
|
plot(time, neuronal_data, 'color', [ 0.2 0.5 0.7], 'linewidth', 1.)
|
||||||
|
plot(spike_times, ones(size(spike_times))*threshold, 'ro', 'markersize', 4)
|
||||||
|
line([time(1) time(end)], [threshold threshold], 'linestyle', '--',
|
||||||
|
'linewidth', 0.75, 'color', [0.9 0.9 0.9])
|
||||||
|
ylim([0 35])
|
||||||
|
xlim([0 2.25])
|
||||||
|
box('off')
|
||||||
|
xlabel('time [s]', 'fontname', 'MyriadPro-Regular', 'fontsize', 10)
|
||||||
|
ylabel('potential [mV]', 'fontname', 'MyriadPro-Regular', 'fontsize', 10)
|
||||||
|
title('pyramidal cell', 'fontname', 'MyriadPro-Regular', 'fontsize', 12)
|
||||||
|
set(gca, 'TickDir','out', 'linewidth', 1.5, 'fontname', 'MyriadPro-Regular')
|
||||||
|
saveas(fig, 'spike_detection.pdf', 'pdf')
|
||||||
|
\end{lstlisting}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{frame} [fragile]
|
||||||
|
\frametitle{Graphische Darstellung von Daten}
|
||||||
|
\framesubtitle{Ver\"andern von Eigenschaften \"uber die Kommandozeile}
|
||||||
|
\begin{figure}
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.75\columnwidth]{./images/spike_detection}
|
||||||
|
\end{figure}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
\begin{frame} [fragile]
|
\begin{frame} [fragile]
|
||||||
\frametitle{Graphische Darstellung von Daten}
|
\frametitle{Graphische Darstellung von Daten}
|
||||||
\framesubtitle{Welche Art Plot wof\"ur?}
|
\framesubtitle{Welche Art Plot wof\"ur?}
|
||||||
@ -183,11 +219,33 @@
|
|||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[fragile]
|
||||||
|
\frametitle{Fortgeschrittene Datenstrukturen I}
|
||||||
|
\framesubtitle{Cell Arrays}
|
||||||
|
\scriptsize
|
||||||
|
\begin{lstlisting}
|
||||||
|
>> % create a cell array
|
||||||
|
>> cell_array = {};
|
||||||
|
>>
|
||||||
|
>> % assignment of arbitrary content
|
||||||
|
>> cell_array{1} = ones(100,1);
|
||||||
|
>> cell_array{2} = ones(10000,100);
|
||||||
|
>> cell_array{3} = 'das ist ein Test';
|
||||||
|
>> cell_array{4} = {};
|
||||||
|
>>
|
||||||
|
>> % accessing of content
|
||||||
|
>> size(cell_array{1})
|
||||||
|
ans =
|
||||||
|
100 1
|
||||||
|
>>
|
||||||
|
\end{lstlisting}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
\begin{frame}[plain]
|
\begin{frame}[plain]
|
||||||
\huge{3. Spiketrain Analyse I}
|
\huge{3. Spiketrain Analyse I}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{Spiketrain Analyse I}
|
\frametitle{Spiketrain Analyse I}
|
||||||
\framesubtitle{Rasterplot}
|
\framesubtitle{Rasterplot}
|
||||||
@ -195,18 +253,18 @@
|
|||||||
\centering
|
\centering
|
||||||
\includegraphics[width=0.375\columnwidth]{images/rasterplot}
|
\includegraphics[width=0.375\columnwidth]{images/rasterplot}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
Wof\"ur eignet sich ein solcher Rasterplot (auch \textit{dotdisplay} genannt)?
|
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
\begin{frame}
|
\begin{frame}
|
||||||
\frametitle{Spiketrain Analyse I}
|
\frametitle{Spiketrain Analyse I}
|
||||||
\framesubtitle{Rasterplot}
|
\framesubtitle{Rasterplot}
|
||||||
\"Ubung:
|
\"Ubung:
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item Ladet die Datei: spike\_times.mat aus dem Ilias Ordner
|
\item Ladet die Datei: electrorecptor\_spike\_times.mat aus dem Ilias Ordner.
|
||||||
|
\item Der Datensatz enth\"alt die Zeiten von Aktionspotentialen.
|
||||||
\item Schaut euch den Inhalt und skizziert wie das Problem gel\"ost werden k\"onnte.
|
\item Schaut euch den Inhalt und skizziert wie das Problem gel\"ost werden k\"onnte.
|
||||||
\item Erzeugt einen Rasterplot.
|
\item Erzeugt einen Rasterplot.
|
||||||
\item Der sch\"onste wird pr\"amiert.
|
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
@ -221,7 +279,7 @@
|
|||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
\begin{figure}
|
\begin{figure}
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=0.75\columnwidth]{images/isi}
|
\includegraphics[width=0.5\columnwidth]{images/isi}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
@ -238,40 +296,59 @@
|
|||||||
\end{enumerate}\pause
|
\end{enumerate}\pause
|
||||||
\begin{figure}
|
\begin{figure}
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=0.75\columnwidth]{images/binning}
|
\includegraphics[width=0.5\columnwidth]{images/binning}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
\begin{frame}
|
\begin{frame}[fragile]
|
||||||
\frametitle{Spiketrain Analyse I}
|
\frametitle{Spiketrain Analyse I}
|
||||||
\framesubtitle{Feuerrate \"uber die Zeit}
|
\framesubtitle{Feuerrate \"uber die Zeit}
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item Z.B. das \textbf{P}eri- \textbf{S}timulus - \textbf{T}ime -
|
\item Z.B. das \textbf{P}eri- \textbf{S}timulus - \textbf{T}ime -
|
||||||
\textbf{H}istogram, \textbf{PSTH}
|
\textbf{H}istogram, \textbf{PSTH}
|
||||||
\item Wird berechnet indem man die Aktivit\"at bin\"ar ausdr\"uckt.
|
\item Wird berechnet indem man die Aktivit\"at bin\"ar ausdr\"uckt.
|
||||||
\item Jede 1 wird dann duch einen bestimmten ``Kern'' ersetzt.
|
\item Jede 1 wird dann duch einen ``Kern'' ersetzt.
|
||||||
\item Der Vorgagn heisst Verfaltung (convolution).
|
\item Der Vorgang heisst Faltung (\verb+conv+).
|
||||||
\end{enumerate}\pause
|
\end{enumerate}\pause
|
||||||
\begin{figure}
|
\begin{figure}
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=0.75\columnwidth]{images/convolution}
|
\includegraphics[width=0.5\columnwidth]{images/conv}
|
||||||
\end{figure}
|
\end{figure}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
\begin{frame} [fragile]
|
\begin{frame} [fragile]
|
||||||
\frametitle{Graphische Darstellung von Daten}
|
\frametitle{Spiketrain Analyse I}
|
||||||
\framesubtitle{\"Ubung}
|
\framesubtitle{\"Ubung}
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item Nehmt euch einen beliebigen Datenplot vor und macht ihn \textbf{sch\"on}.
|
\item Berechnet die Feuerrate eines Neurons mit einer der drei Methoden.
|
||||||
\item Die Abbildung soll f\"ur eine einspaltige Abbildung im
|
\item Die Abbildung soll f\"ur eine einspaltige Abbildung im
|
||||||
\textit{Journal of Neuroscience} geeignet sein
|
\textit{Journal of Neuroscience} geeignet sein
|
||||||
(\url{http://www.jneurosci.org/site/misc/ifa_illustrations.xhtml}).
|
(\url{http://www.jneurosci.org/site/misc/ifa_illustrations.xhtml}).
|
||||||
\item Erzeugt/ver\"andert/erweitert das Programm zum plotten so, dass
|
\item Erzeugt/ver\"andert/erweitert das Programm zum plotten so, dass
|
||||||
die Abbildung automatisch erstellt und gespeichert wird.
|
die Abbildung automatisch erstellt und gespeichert wird.
|
||||||
\item Speichert die Abbildung als pdf.
|
\item Speichert die Abbildung als pdf.
|
||||||
|
\item Ladet den Stimulus aus dem Ilias Ordner und benutzt die
|
||||||
|
\verb+subplot+ Funktion um den Stimulus zu der neuronalen
|
||||||
|
Aktivit\"at zu plotten.
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[fragile]
|
||||||
|
\frametitle{Spiketrain Analyse}
|
||||||
|
\framesubtitle{Spike-Triggered-Average}
|
||||||
|
\begin{enumerate}
|
||||||
|
\item Der \textbf{STA} ist der mittlere Stimulus, der zu einem Aktionspotential f\"uhrt.
|
||||||
|
\item F\"ur jeden Spike wird ein entsprechender Abschnitt um die Zeit des Spikes herausgeschnitten.
|
||||||
|
\item Die einzelen Stimulussegmente werden gemittelt.
|
||||||
|
\end{enumerate}\pause
|
||||||
|
\begin{figure}
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.5\columnwidth]{images/sta}
|
||||||
|
\end{figure}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Reference in New Issue
Block a user