[pointprocesses] updated exercise

This commit is contained in:
Jan Benda 2020-01-06 23:00:41 +01:00
parent 1cc4407ede
commit fbc4a3515a
2 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ function spikes = hompoissonspikes(rate, trials, tmax)
nintervals = 2*round(tmax/mu); nintervals = 2*round(tmax/mu);
for k=1:trials for k=1:trials
% exponential random numbers: % exponential random numbers:
intervals = random('Exponential', nintervals, 1); intervals = random('Exponential', mu, nintervals, 1);
times = cumsum(intervals); times = cumsum(intervals);
spikes{k} = times(times<=tmax); spikes{k} = times(times<=tmax);
end end

View File

@ -15,7 +15,7 @@
\else \else
\newcommand{\stitle}{} \newcommand{\stitle}{}
\fi \fi
\header{{\bfseries\large Exercise 8\stitle}}{{\bfseries\large Point processes}}{{\bfseries\large December 3th, 2018}} \header{{\bfseries\large Exercise 12\stitle}}{{\bfseries\large Point processes}}{{\bfseries\large January 14th, 2020}}
\firstpagefooter{Prof. Dr. Jan Benda}{Phone: 29 74573}{Email: \firstpagefooter{Prof. Dr. Jan Benda}{Phone: 29 74573}{Email:
jan.benda@uni-tuebingen.de} jan.benda@uni-tuebingen.de}
\runningfooter{}{\thepage}{} \runningfooter{}{\thepage}{}
@ -137,7 +137,7 @@ jan.benda@uni-tuebingen.de}
Use this function to plot the first second of the Use this function to plot the first second of the
spike rasters of the three neurons. spike rasters of the three neurons.
\begin{solution} \begin{solution}
\lstinputlisting{../code/spikeraster.m} \lstinputlisting{../code/rasterplot.m}
\lstinputlisting{../code/plotspikeraster.m} \lstinputlisting{../code/plotspikeraster.m}
\mbox{}\\[-3ex] \mbox{}\\[-3ex]
\colorbox{white}{\includegraphics[width=1\textwidth]{spikeraster}} \colorbox{white}{\includegraphics[width=1\textwidth]{spikeraster}}