Skip to content

Commit

Permalink
fix izhikevich
Browse files Browse the repository at this point in the history
  • Loading branch information
antodima committed Apr 13, 2021
1 parent efb082e commit db58123
Show file tree
Hide file tree
Showing 40 changed files with 13 additions and 11 deletions.
Binary file modified LAB1/images/accomodation_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/accomodation_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/bistability_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/bistability_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/class_1_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/class_1_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/class_2_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/class_2_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/dap_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/dap_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/inhibition_induced_bursting_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/inhibition_induced_bursting_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/inhibition_induced_spiking_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/inhibition_induced_spiking_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/mixed_mode_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/mixed_mode_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/phasic_bursting_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/phasic_bursting_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/phasic_spiking_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/phasic_spiking_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/rebound_burst_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/rebound_burst_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/rebound_spike_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/rebound_spike_phase_portrait.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/resonator_membrane_potential.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified LAB1/images/resonator_phase_portrait.png
Binary file modified LAB1/images/spike_freq_adapt_membrane_potential.png
Binary file modified LAB1/images/spike_freq_adapt_phase_portrait.png
Binary file modified LAB1/images/spike_latency_membrane_potential.png
Binary file modified LAB1/images/spike_latency_phase_portrait.png
Binary file modified LAB1/images/subthresh_osc_membrane_potential.png
Binary file modified LAB1/images/subthresh_osc_phase_portrait.png
Binary file modified LAB1/images/thresh_variability_membrane_potential.png
Binary file modified LAB1/images/thresh_variability_phase_portrait.png
Binary file modified LAB1/images/tonic_bursting_membrane_potential.png
Binary file modified LAB1/images/tonic_bursting_phase_portrait.png
Binary file modified LAB1/images/tonic_spiking_membrane_potential.png
Binary file modified LAB1/images/tonic_spiking_phase_portrait.png
2 changes: 1 addition & 1 deletion LAB1/inhibition_induced_bursting.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% (T) inhibition induced bursting

a=-0.026; b=-1; c=-45; d=-0.7; % d=-0.7 instead of d=-2
a=-0.026; b=-1; c=-45; d=-2;
u=-63.8; w=b*u;
us=[]; ws=[]; dus=[]; dws=[]
tau=0.5; tspan=0:tau:350;
Expand Down
22 changes: 12 additions & 10 deletions LAB1/izhikevich.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,20 @@

% Izhikevich equations
if variant==0 % baseline equations of almost all neurons
du = tau * (0.04*u^2 + 5*u + 140 - w + I);
dw = tau * a*(b*u - w);
du = (0.04*u^2 + 5*u + 140 - w + I);
dw = a*(b*u - w);
u = u + tau * (0.04*u^2 + 5*u + 140 - w + I);
w = w + tau * a*(b*u - w);
elseif variant==1 % variant of equations for neurons: (G) and (L)
du = tau * (0.04*u^2 + 4.1*u + 108 - w + I);
dw = tau * a*(b*u - w);
du = (0.04*u^2 + 4.1*u + 108 - w + I);
dw = a*(b*u - w);
u = u + tau * (0.04*u^2 + 4.1*u + 108 - w + I);
w = w + tau * a*(b*u - w);
elseif variant==2 % variant of equations for neuron (R)
du = tau * (0.04*u^2 + 5*u + 140 - w + I);
dw = tau * a*(b*(u+65));
du = (0.04*u^2 + 5*u + 140 - w + I);
dw = a*(b*(u+65));
u = u + tau * (0.04*u^2 + 5*u + 140 - w + I);
w = w + tau * a*(b*(u+65));
end

% updating of variables
u = u + du;
w = w + dw;

end %end of function

0 comments on commit db58123

Please sign in to comment.