2013/den13: alpha.m

File alpha.m, 268 bytes (added by jtapson, 5 years ago)

Alpha function generator

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