neurohw2 - Th i s mode l i s based o f f o f the m-code wr...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
% This model is based off of the m-code written by Paul Miller,  accessable % at http://people.brandeis.edu/~pmiller/COMP_NEURO/MATLAB/connors.m clear  all ;   vclamp = 0;   %are we in v clamp or not 1 = yes   dt = 0.000005; tmax=8; cm = 10e-9;   spikeflag = 0;       %tells whether or not we are in a spike, removes  double counting     ena = 0.050;    % reversal for sodium channels ek = -0.077;    % reversal for potassium channels el = -0.0544;    % reversal for l  sigma = 0.05e-3;       %magnitutde of noise gna = 1.2e-3; gk= .36e-3; gl = .003e-3;   %%Ve = -0.040;    % value of votage stepped to     t=0:dt:tmax;     % time vector V=zeros(size(t));  % voltage vector itot=zeros(size(t));  %total current vector     iapp=zeros(size(t));  % Applied current if  vclamp == 0; for  i=1:length(t)  % make non-zero for duration of current pulse     % iapp(i) = 0;      % iapp(i) = 20e-9;      iapp(i) = 150e-9;  end end      %all arrays n,m,h arrays n=zeros(size(t));    % n: potassium activation gating variable m=zeros(size(t));    % m: sodium activation gating variable h=zeros(size(t));    % h: sodim inactivation gating variable %am=zeros(size(t));   % alpha for m %ah=zeros(size(t));   % alpha for h %an=zeros(size(t));   % alpha for n %bm=zeros(size(t));   % beta for m %bn=zeros(size(t));   % beta for n %bh=zeros(size(t));   % beta for h ik=zeros(size(t)); ina=zeros(size(t));
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
il=zeros(size(t)); spikes = zeros(size(t));                        %initial steady state values                    n(1) = 0.6697;         % initial steady state value m(1) = 0.0134;          % initial steady state value h(1) = 0.8831;          % initial steady state value V(1)= -.0761;          
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/21/2008 for the course NBIO 136 taught by Professor Miller during the Spring '06 term at Brandeis.

Page1 / 8

neurohw2 - Th i s mode l i s based o f f o f the m-code wr...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online