12.07.2015 Views

Dynamical Systems in Neuroscience:

Dynamical Systems in Neuroscience:

Dynamical Systems in Neuroscience:

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

516 Solutions to Exercises, Chap. 10The follow<strong>in</strong>g program must be <strong>in</strong> the file prcerror.m.function err=prcerror(coeff)global spikes p tau na = coeff(1:n); % Fourier coefficients for s<strong>in</strong>b = coeff(n+1:2*n); % Fourier coefficients for cosb0= coeff(2*n+1); % dc termT = coeff(2*n+2); % period of oscillationerr=0;i=1;clf;for s=2:length(spikes)theta=0;while i*tau

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!