Hodgkin-Huxley model response
Afficher commentaires plus anciens
I have code for Hodgkin-Huxley model using Euler's method and the response I get for following pulses:
N = 400; % number of pulses
Tp = 0.001; % pulse width
d1 = 0.001; % interphase delay
d2_2 = 0.002; % interpulse delay [ms]
U0 = 100; % amplitude
% define sampling freq
fs = 500000; % [Hz]
% single pulse
x1 = [ones(round(Tp*fs), 1) % + pulse
zeros(round(d1*fs), 1) % d1
-ones(round(Tp*fs), 1) % - pulse
zeros(round(d2_2*fs), 1)]; % d2
x = U0*repmat(x1, N, 1);
t = (0:length(x)-1)/fs;
% Downsampling
downsample_factor = ceil(length(x) / 100000);
x_downsampled = x(1:downsample_factor:end);
t_downsampled = t(1:downsample_factor:end);
% plot the downsampled signal
plot(t_downsampled, x_downsampled);
grid on;
ylim([-1 1] * 1.5 * U0);
xlabel("Time [ms]");
ylabel("U [V]");
xlim([0 0.2])
ylim([-0.1 0.1])
is (left figure is amplitude = 1mV and right one amplitude = 100mV):


Is this logical (moslty right figure)? Could it be problem with my code of model or pulses code?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Gaussian Process Regression dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


