This preview shows page 1. Sign up to view the full content.
Unformatted text preview: fit the experimentally-measured curves. One way to deal with this is to include an ifstatement that detects when the voltage parameter is near the bad voltage (-45 or -60 mV), and for these cases, return the limit of as V approaches that value. For n the limit is 0.1, and for m the limit is 1. Example MATLAB code: %% m_inf if (abs(v(i) + 45) <=0.01) a_m(i) = 1; else a_m(i) = (-0.1*(v(i) + 45))/(exp(-(v(i) + 45)/10) - 1); end; %% n_inf if (abs(v(i) + 60) <=0.01) a_n(i) = .1; else a_n(i) = (-0.01*(v(i) + 60))/(exp(-(v(i) +60)/10) - 1); end;...
View Full Document
- Spring '06