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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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