# 2013/den13: del_gauss.m

File del_gauss.m, 330 bytes (added by jtapson, 5 years ago) |
---|

Line | |
---|---|

1 | function [ v] = del_gauss( del,length ) |

2 | |

3 | ts=30; |

4 | sigma=del/5; |

5 | %alpha plus delay function |

6 | % Detailed explanation goes here |

7 | v=zeros(length,1); % output array |

8 | % response time constant |

9 | for t=1:length |

10 | %v(t,1)=exp(-((t-del)^2)); |

11 | v(t,1)=(1/(sigma*2.5))*exp(-((t-del)^2)/(2*sigma^2)); |

12 | end |

13 | |

14 | |

15 | end |

16 |