This repository has been archived on 2021-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
scientificComputing/regression/exercises/expdecaydata.m

11 lines
375 B
Matlab

tau = 10.0; % membrane time constant in ms
dt = 0.05; % sampling interval in ms
noisesd = 0.05; % measurement noise in mV
time = 0.0:dt:6*tau; % time vector
voltage = expdecay(time, tau); % exponential decay
voltage = voltage + noisesd*randn(1, length(voltage)); % plus noise
plot(time, voltage);