2013/den13: del_alpha.m

File del_alpha.m, 281 bytes (added by jtapson, 5 years ago)

generates alpha functiosn with added explicit delay

Line 
1function [ v] = del_alpha( del,length )
2
3ts=30;
4%alpha plus delay function
5%   Detailed explanation goes here
6v=zeros(length,1);    % output array
7              % response time constant
8for t=(floor(del)+1):length
9    v(t,1)=((t-del)/ts)*exp(-(t-del)/ts);
10end
11
12
13end
14