fixed pointprocesscode

This commit is contained in:
Jan Benda 2017-11-28 10:13:59 +01:00
parent 6e463394ef
commit 07291002b6
9 changed files with 18 additions and 15 deletions

View File

@ -284,8 +284,8 @@
placement=t,
chapterlistsgaps=on,
]{exercisef}
\newcounter{maxexercise}
\setcounter{maxexercise}{10000} % show listings up to exercise maxexercise
\newboolean{showexercisesolutions}
\setboolean{showexercisesolutions}{true}
\newenvironment{exercise}[2]%
{\newcommand{\exercisesource}{#1}%
\newcommand{\exercisefile}{\protect\StrSubstitute{#1}{_}{\_}}%
@ -299,12 +299,12 @@
}%
{\hypersetup{hypertexnames=false}%
\ifthenelse{\equal{\exercisesource}{}}{}%
{\ifthenelse{\value{exercisef}>\value{maxexercise}}{}%
{\ifthenelse{\boolean{showexercisesolutions}}%
{\addtocounter{lstlisting}{-1}%
\lstinputlisting[belowskip=0pt,aboveskip=1ex,nolol=true,title={\textbf{\tr{Solution}{L\"osung}:} \exercisefile}]{\codepath\exercisesource}%
\ifthenelse{\equal{\exerciseoutput}{}}{}%
{\addtocounter{lstlisting}{-1}%
\lstinputlisting[language={},title={\textbf{\tr{Output}{Ausgabe}:}},nolol=true,belowskip=0pt]{\codepath\exerciseoutput}}}}%
\lstinputlisting[language={},title={\textbf{\tr{Output}{Ausgabe}:}},nolol=true,belowskip=0pt]{\codepath\exerciseoutput}}}{}}%
\hypersetup{hypertexnames=true}%
\end{mdframed}%
\renewcommand{\theenumi}{\saveenumi}}

View File

@ -26,7 +26,7 @@ function isicorr = isiserialcorr(isivec, maxlag)
% plot:
plot(lags, isicorr, '-b');
hold on;
scatter(lags, isicorr, 10.0, 'b', 'filled');
scatter(lags, isicorr, 50.0, 'b', 'filled');
hold off;
xlabel('Lag k')
ylabel('\rho_k')

View File

@ -123,6 +123,7 @@ jan.benda@uni-tuebingen.de}
pifouspikes = x.spikes;
x = load('lifadapt.mat');
lifadaptspikes = x.spikes;
clear x;
\end{lstlisting}
\end{solution}
@ -195,4 +196,4 @@ jan.benda@uni-tuebingen.de}
\end{questions}
\end{document}
\end{document}

View File

@ -2,6 +2,8 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{Analyse von Spiketrains}
\setboolean{showexercisesolutions}{false}
\selectlanguage{ngerman}
\determ[Aktionspotential]{Aktionspotentiale} (\enterm{spikes}) sind die Tr\"ager der
@ -121,7 +123,7 @@ heisen die Intervalle auch \determ{Interspikeintervalle}
berechnet.
\end{exercise}
\begin{exercise}{plotISIHist.m}{}
\begin{exercise}{plotisihist.m}{}
Schreibe eine Funktion, die die Histogrammdaten der Funktion
\code{isiHist()} entgegennimmt, um das Histogramm zu plotten. Im
Plot sollen die Interspikeintervalle in Millisekunden aufgetragen
@ -513,3 +515,5 @@ die Zellantwort mit dem STA verfaltet.
\end{exercise}
\selectlanguage{english}
\setboolean{showexercisesolutions}{true}

View File

@ -1,7 +1,7 @@
%!PS-Adobe-2.0 EPSF-2.0
%%Title: pointprocessscetchA.tex
%%Creator: gnuplot 4.6 patchlevel 4
%%CreationDate: Mon Nov 27 21:08:10 2017
%%CreationDate: Tue Nov 28 10:02:49 2017
%%DocumentFonts:
%%BoundingBox: 50 50 373 135
%%EndComments
@ -430,10 +430,10 @@ SDict begin [
/Title (pointprocessscetchA.tex)
/Subject (gnuplot plot)
/Creator (gnuplot 4.6 patchlevel 4)
/Author (jan)
/Author (benda)
% /Producer (gnuplot)
% /Keywords ()
/CreationDate (Mon Nov 27 21:08:10 2017)
/CreationDate (Tue Nov 28 10:02:49 2017)
/DOCINFO pdfmark
end
} ifelse

View File

@ -1,7 +1,7 @@
%!PS-Adobe-2.0 EPSF-2.0
%%Title: pointprocessscetchB.tex
%%Creator: gnuplot 4.6 patchlevel 4
%%CreationDate: Mon Nov 27 21:08:10 2017
%%CreationDate: Tue Nov 28 10:02:49 2017
%%DocumentFonts:
%%BoundingBox: 50 50 373 237
%%EndComments
@ -430,10 +430,10 @@ SDict begin [
/Title (pointprocessscetchB.tex)
/Subject (gnuplot plot)
/Creator (gnuplot 4.6 patchlevel 4)
/Author (jan)
/Author (benda)
% /Producer (gnuplot)
% /Keywords ()
/CreationDate (Mon Nov 27 21:08:10 2017)
/CreationDate (Tue Nov 28 10:02:49 2017)
/DOCINFO pdfmark
end
} ifelse

View File

@ -2,8 +2,6 @@
\input{header}
\setcounter{maxexercise}{1000} % show listings up to exercise maxexercise
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}